query
Run SQL queries against MySQL databases. Use SELECT, SHOW, and other statements to fetch data in readonly mode.
Instructions
Execute SQL query (SELECT, SHOW, etc. In readonly mode, only reads are allowed)
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 statement to execute | |
| maxRows | No | Override global MAX_ROWS for this query | |
| profile | No | Profile name to use for this query (defaults to current profile) |