explain_sql
Retrieve the execution plan of a SQL query on an Alibaba Cloud RDS instance to identify performance issues and optimize queries.
Instructions
show sql execute plan
Args:
dbinstance_id (str): The ID of the RDS instance.
region_id(str): the region id of instance.
db_name(str): the db name for table.
sql(str): the target sql.
Returns:
the sql execute plan.
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": {
"region_id": "<region_id>",
"dbinstance_id": "<dbinstance_id>",
"db_name": "<db_name>",
"sql": "<sql>"
},
"name": "explain_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| db_name | Yes | ||
| region_id | Yes | ||
| dbinstance_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |