execute_sql
Run read-only SQL queries on a MySQL database to explore and inspect data; results are capped at 500 rows and marked truncated when limited.
Instructions
DATETIME and DATE values are returned with the digits stored in the database and a trailing "Z" that is only formatting: they have no time zone, so do not convert them to another time zone. TIMESTAMP values are in the server's default session time zone. Execute SQL queries on the mysql database [READ-ONLY MODE] (limited to 500 rows; capped results carry "truncated": true)
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": "execute_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL to execute (multiple statements separated by ;) |