Query
queryRun a Socrata SoQL query against a Bloomington Open Data dataset by resource_id (e.g. "yv82-z42g"). Filter with where/select/group/order (SoQL clauses, without the leading $) plus limit/offset. Returns matching rows as JSON.
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": {
"limit": 20,
"resource_id": "yv82-z42g"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | SoQL $group column(s). | |
| limit | No | Max rows (default Socrata 1000). | |
| order | No | SoQL $order, e.g. "date DESC". | |
| where | No | SoQL $where filter, e.g. "year >= 2020 AND status = 'Active'". | |
| offset | No | Pagination offset. | |
| select | No | SoQL $select, e.g. "name, count(*) AS n". | |
| resource_id | Yes | Dataset id, e.g. "yv82-z42g" (from datasets). |