read_query
Execute capped read-only SQL queries (SELECT/WITH/PRAGMA/EXPLAIN) on allow-listed SQLite databases to inspect schemas and data without writes.
Instructions
Run a read-only SQL query (SELECT / WITH / PRAGMA / EXPLAIN only). Results are capped.
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": {
"database": "<database>",
"sql": "<sql>"
},
"name": "read_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No | ||
| database | Yes | Database alias or path given at server startup |