run_query
Execute a single read-only SELECT against a SQLite database to inspect data safely; writes, schema changes, multiple statements, and PRAGMA/ATTACH are rejected, with row and time caps.
Instructions
Run ONE read-only SELECT statement. Writes, PRAGMA, ATTACH and multiple statements are
rejected. Results are capped at 200 rows (check truncated) and queries time out after 2s.
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_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||