query
Run a read-only MySQL query to inspect data or schema. Accepts SELECT, SHOW, DESCRIBE, EXPLAIN, and WITH statements while preventing writes.
Instructions
Use this when you need to run one read-only MySQL query. It accepts SELECT, SHOW, DESCRIBE, EXPLAIN, and WITH 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": {
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |