calgary_query
ActiveTool of Data Calgary
Run a raw SoQL query against any Calgary open-data resource (data.calgary.ca) by its Socrata id (8-char like "iahh-g8bj"). Full SoQL: where/select/group/order/limit/offset. Use calgary_datasets to find a resource id, or calgary_recent for the common ones.
Parameters schema
{
"type": "object",
"required": [
"resource_id"
],
"properties": {
"group": {
"type": "string",
"description": "SoQL $group (e.g. \"incident_category\")."
},
"limit": {
"type": "number",
"description": "Max rows (default 100, max 5000)."
},
"order": {
"type": "string",
"description": "SoQL $order (e.g. \"incident_datetime DESC\")."
},
"where": {
"type": "string",
"description": "SoQL $where filter (e.g. \"incident_year=2025\")."
},
"offset": {
"type": "number",
"description": "Row offset for paging."
},
"select": {
"type": "string",
"description": "SoQL $select (e.g. \"incident_category, count(*)\")."
},
"_apiKey": {
"type": "string",
"description": "Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint."
},
"resource_id": {
"type": "string",
"description": "Socrata resource id, e.g. \"iahh-g8bj\" (police incidents)."
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
Data Calgary
https://github.com/pipeworx-io/mcp-data-calgary
2/7 registries