query
Execute read-only SQL queries on MySQL databases, with optional connection string override for dynamic querying.
Instructions
Run a read-only SQL query against the currently connected 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 (read-only) | |
| connectionString | No | Optional: MySQL connection string to override the current connection for this query only |