Query a data file
query_dataPerform read-only structured queries on local files: filter rows, choose columns, sort, limit, group, and aggregate. Returns a Markdown table without altering the data.
Instructions
Run a read-only structured query over a local data file: filter (where), select columns, order_by, limit/offset, and group_by with aggregations (count/sum/avg/min/max). Returns a Markdown table. No SQL, no writes — the file is never modified.
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": {
"path": "<path>"
},
"name": "query_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the data file. | |
| limit | No | ||
| where | No | Row filters (ANDed together). | |
| offset | No | ||
| select | No | Columns to keep in the output. | |
| group_by | No | Group rows by these columns. | |
| order_by | No | ||
| aggregate | No | Aggregations to compute per group (with group_by). |