Validate SQL (burn credit)
sqlguard_validateLegacy prepaid burn path — OFF TABLE as wealth. For production authorize use sqlguard_challenge → Exact $100 unlock → sqlguard_verify. This tool burns prepaid credits only. Never execute FAIL or unverified certs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"schema_ddl": "<schema_ddl>",
"sql": "<sql>"
},
"name": "sqlguard_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Proposed SQL mutation to authorize in the sandbox | |
| agent_id | Yes | Agent or wallet id holding prepaid credits to debit | |
| schema_ddl | Yes | Postgres DDL snapshot (CREATE TABLE…) the SQL will run against |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | No | Sandbox authorize decision | |
| signature | No | Ed25519 signature over the certificate | |
| certificate | No | Unsigned Execution Certificate payload | |
| credits_remaining | No | Agent balance after debit |