validate_sql
Checks whether a SQL query is valid before execution, returning true for valid SQL or an error message for invalid input.
Instructions
Validate SQL. Returns the string 'true' if the SQL is valid, or an error message string if invalid.
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": {
"sql": "<sql>"
},
"name": "validate_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query to validate |