Run a read-only SQL query
queryRun a read-only SQL SELECT/WITH statement on a SQLite database and receive the result rows as JSON. Inspect schema resources to understand tables and columns before querying.
Instructions
Run a single read-only SQL SELECT/WITH statement and return rows as JSON. Read the schema://tables and schema://table/{name} resources first to learn the schema.
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 | a single read-only SELECT/WITH statement |