Run a read-only query
queryRun one read-only SQLite SELECT and return columns and rows as JSON, capped at 200 rows, while enforced access policies and automatic row-level filtering keep results compliant.
Instructions
Run one read-only sqlite SELECT and return columns and rows as JSON, at most 200 rows. Writes, other statements, tables or columns outside the policy and dangerous functions are rejected with the reason: fix the query and try again. Rows are filtered for the current user automatically; don't add those filters yourself.
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 | One SELECT query, in the dialect list_tables reports |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||