query
Execute read-only SQL SELECT, SHOW, DESCRIBE, or EXPLAIN statements against MySQL to inspect schemas and retrieve data safely.
Instructions
Execute a read-only SQL query (SELECT / SHOW / DESCRIBE / EXPLAIN).
Only SELECT, SHOW, DESCRIBE, and EXPLAIN statements are allowed.
Args: sql: The SQL query to execute.
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 |