Run read-only SQL
run_readonly_queryExecute a single read-only SELECT against the QA results database when no other tool fits, rejecting writes and multiple statements.
Instructions
Run ONE read-only SELECT against the results DB when no other tool fits. Writes, PRAGMA, ATTACH and multiple statements are rejected. Read qa://schema first.
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": "run_readonly_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single SELECT/WITH statement | |
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| row_count | Yes | ||
| truncated | Yes |