explain_plan
Displays Oracle optimizer execution plans for SQL statements without executing them, so you can inspect access paths and performance before running a query.
Instructions
Show the optimizer execution plan (EXPLAIN PLAN + DBMS_XPLAN.DISPLAY) of a SELECT, WITH, INSERT, UPDATE, DELETE or MERGE statement 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": "explain_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Statement to explain; bind variables (:1, :name) may stay unbound | |
| format | No | DBMS_XPLAN format, e.g. TYPICAL (default), BASIC, ALL, ADVANCED, TYPICAL +OUTLINE |