db_query
Execute SELECT SQL queries to retrieve data from your database. Use this tool for all read operations, returning results up to a specified row limit.
Instructions
Execute a SELECT SQL query and return results. Use this for all read operations.
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": "db_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A SELECT SQL query. Must be a read-only statement. | |
| limit | No | Max rows to return (default 100, max 1000) |