execute_query
Run read-only SQL queries like SELECT, SHOW, DESCRIBE, EXPLAIN, and WITH against MySQL databases, returning rows up to a set limit for data inspection.
Instructions
Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH).
Args: query: SQL query to run. limit: Max rows when the query has no LIMIT (1-1000).
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": {
"query": "<query>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |