get-execution-plan
get-execution-planInspect a Firebird SELECT query's optimizer plan in a read-only transaction without executing it; unavailable plans return an error, not an execution fallback.
Instructions
Prepares an authorized SELECT in a read-only transaction and retrieves its optimizer plan without executing it. Parameters are not bound; unavailable plans return an error, never an execution fallback.
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": "get-execution-plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Authorized SELECT-first statement to prepare, not execute; WITH/CTE and writes are not supported | |
| params | No | Retained for compatibility/auditing; values are not bound for prepare-only plans |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Failure information; present when success is false | |
| result | No | The legacy JSON payload; present for completed operations and partial batches | |
| success | Yes | False for tool failures, including partially failed batches |