MySQL read-only query
mysql_queryRetrieve data and inspect schema safely with read-only MySQL queries, validated to allow only SELECT, SHOW, DESCRIBE, and EXPLAIN statements.
Instructions
Run a read-only MySQL query. Allowed statements: SELECT, WITH SELECT, SHOW, DESCRIBE/DESC, and safe EXPLAIN.
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": "mysql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Read-only SQL statement to execute. | |
| maxRows | No | Maximum rows to return, up to 500. |