execute_sql
Run read-only SQL queries (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH) against MySQL and get results as JSON. Use for safe data retrieval and schema inspection.
Instructions
Execute a read-only SQL query (SELECT / SHOW / DESCRIBE / EXPLAIN / WITH).
Returns rows as JSON. Single statements only.
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": {
"query": "<query>"
},
"name": "execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |