get_query_plan
Retrieves estimated execution plans for SQL queries to analyze performance without executing. Specify server and database to target.
Instructions
Get the estimated execution plan for a SQL query (without executing it)
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_query_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to analyze | |
| server | No | Target server name (uses default if omitted) | |
| database | No | Database name (uses connection default if omitted) |