query
Execute read-only SELECT, WITH, PRAGMA, or EXPLAIN statements on SQLite databases; returns columns, rows, row count, and truncation status.
Instructions
执行只读 SQL 查询(SELECT/WITH/PRAGMA/EXPLAIN)。返回 {columns, rows, row_count, truncated}。结果默认最多 500 行。
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_path": "<db_path>",
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| db_path | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |