db.validate_sql
Check the validity of SQL SELECT, INSERT, UPDATE, or DELETE statements without running them. Uses EXPLAIN without ANALYZE to ensure syntax and execution plan correctness, keeping database safe.
Instructions
Validate SELECT, INSERT, UPDATE, or DELETE statements without executing them by using EXPLAIN without ANALYZE.
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": {
"mode": "<mode>",
"sql": "<sql>"
},
"name": "db.validate_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| mode | Yes | ||
| params | No | ||
| database | No |