Boston Query
boston_queryQuery any City of Boston datastore resource (data.boston.gov, CKAN) by its resource id (a UUID). Supports a free-text q, exact-match filters (field -> value), sort ("field desc"), limit and offset. Use boston_datasets to find a resource id, or boston_recent for the common ones.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sort": "OCCURRED_ON_DATE desc",
"limit": 100,
"filters": {
"district": "B2"
},
"resource_id": "b973d8cb-eeb2-4e7e-99da-c92938efc9c0"
},
"name": "boston_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Free-text search across columns. | |
| sort | No | Sort clause, e.g. "OCCURRED_ON_DATE desc". | |
| limit | No | Max rows (default 100, max 1000). | |
| offset | No | Row offset for paging. | |
| filters | No | Exact-match filters as a JSON object, e.g. {"district":"B2"}. | |
| resource_id | Yes | CKAN datastore resource id (UUID), e.g. "b973d8cb-eeb2-4e7e-99da-c92938efc9c0". |