Toronto Query
toronto_queryQuery any City of Toronto datastore resource (open.toronto.ca, CKAN) by its resource id (a UUID). Supports a free-text q, exact-match filters (field -> value), sort ("field desc"), limit and offset. Use toronto_datasets to find a resource id, or toronto_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": {
"limit": 100,
"resource_id": "6d0229af-bc54-46de-9c2b-26759b01dd05"
},
"name": "toronto_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Free-text search across columns. | |
| sort | No | Sort clause, e.g. "APPLICATION_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. {"PERMIT_TYPE":"New Building"}. | |
| resource_id | Yes | CKAN datastore resource id (UUID), e.g. "6d0229af-bc54-46de-9c2b-26759b01dd05". |