explain_sql_query
Preview a database's execution plan for a read-only SELECT statement to check query performance before running it.
Instructions
Return the database's execution plan for a read-only SELECT statement, so query performance can be checked before running it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "explain_sql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_uri | No | A short connection name (e.g. "prod"), a full connection string for local testing, or empty ("") for the default database. | |
| sql_query | No | A single SELECT statement to analyze. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||