query
Execute SQL queries on SQLite databases to retrieve data as formatted tables. Specify database path and SQL statement to run read-only queries.
Instructions
Execute a SQL query against a SQLite database. Returns results as a formatted table. Read-only by default.
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": {
"db": "<db>",
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Path to the .db or .sqlite file | |
| sql | Yes | SQL query to execute | |
| readonly | No | If true, only SELECT/PRAGMA/EXPLAIN allowed |