query
Execute SQL statements against a MySQL database, optionally with prepared-statement parameters, to retrieve or modify data and inspect schema.
Instructions
Execute a SQL query on the MySQL database
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 | SQL query to execute | |
| params | No | Query parameters for prepared statements |