db_query
Run read-only SQL queries (SELECT/WITH/EXPLAIN) against a local database and return matching rows for data retrieval and inspection.
Instructions
Run a read-only SQL query (SELECT/WITH/EXPLAIN only) against the local database and return the rows.
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>",
"limit": "<limit>"
},
"name": "db_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | Yes | ||
| params | No |