query
Execute a read-only SQL SELECT or WITH statement on a SQLite database, returning results up to a configurable maximum number of rows.
Instructions
Run a READ-ONLY SQL query (a single SELECT or WITH statement) and return the rows.
Writes (INSERT/UPDATE/DELETE/DROP/...) are rejected. Results are capped at max_rows.
Args: sql: A single SELECT or WITH statement. max_rows: Maximum number of rows to return (1-1000, default 100).
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 | ||
| max_rows | No |