mysql_query
Execute read-only SELECT, SHOW, or EXPLAIN statements on a MySQL database via a configured connection.
Instructions
Run a read-only SELECT/SHOW/EXPLAIN query against a configured MySQL connection.
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 | A SELECT, SHOW, or EXPLAIN statement. | |
| connectionId | No | Id of the mysql connection to use. Optional when only one mysql connection is configured. |