{"slug":"commandguard-grindfree-net-v1-sql-3aaa70","title":"Check agent-generated SQL before execution","host":"commandguard.grindfree.net","method":"POST","resource":"https://commandguard.grindfree.net/v1/sql","category":"code","description":"Check agent-generated SQL before execution. Returns allow|warn|block with rule codes (DROP/TRUNCATE, DELETE/UPDATE without WHERE or tautology, privilege grants, COPY PROGRAM, file/network access, read_only and protected_tables policy). Caller must enforce. No price increase without 30 days' notice.","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":31,"reported_payers_30d":12,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"dialect":"postgres","policy":{"read_only":false},"sql":"DELETE FROM orders"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"dialect":{"enum":["postgres","mysql","mariadb","sqlite","mssql","snowflake","bigquery","other"],"type":"string"},"policy":{"description":"Optional owner policy","properties":{"allow_rules":{"items":{"type":"string"},"type":"array"},"allow_write_tables":{"description":"If set, writes to other tables are blocked","items":{"type":"string"},"type":"array"},"mode":{"enum":["balanced","strict"],"type":"string"},"protected_tables":{"items":{"type":"string"},"type":"array"},"read_only":{"description":"Block any write/DDL","type":"boolean"}},"type":"object"},"sql":{"description":"One or more SQL statements","maxLength":50000,"type":"string"}},"required":["sql"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Check agent-generated SQL before execution. Returns allow|warn|block with rule codes (DROP/TRUNCATE, DELETE/UPDATE without WHERE or tautology, privilege grants, COPY PROGRAM, file/network access, read_only and protected_tables policy). Caller must enforce. No price increase without 30 days' notice.","last_updated":"2026-11-27T01:01:15.624Z","schemes":["exact"]}