explain_plan
Generate an Oracle execution plan for a SQL statement without running it, using EXPLAIN PLAN and DBMS_XPLAN; surface errors if PLAN_TABLE is missing or inaccessible.
Instructions
Generate and return the Oracle execution plan for a SQL statement via EXPLAIN PLAN and DBMS_XPLAN, without executing the statement. Needs a PLAN_TABLE; if it is missing or the user lacks access, the failure is surfaced as an error result. Reports progress to clients that pass a progress token.
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 | The SQL statement to plan (typically SELECT, INSERT, UPDATE, DELETE or MERGE). |