ontario_catalogue_datastore
Pack: data-ontario · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ontario_catalogue_datastore for the schema, then POST the same URL with its arguments for the data.
Read rows and field types from a datastore-enabled Ontario resource by resource id (from ontario_catalogue_dataset, where datastore is true). Supports free-text q, exact-match filters, sort, limit and offset. limit 0 returns only the fields and their types. Source: Government of Ontario, Ontario Data Catalogue.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Datastore resource id (UUID). |
q | string | no | Free-text search across columns. |
filters | object | no | Exact-match filters as an object, e.g. {“Year”: 2020}. |
sort | string | no | Sort clause, e.g. “Year desc”. |
limit | number | no | Rows (0-1000, default 20). 0 returns fields only. |
offset | number | no | Row offset for paging. |
Example call
Arguments
{
"resource_id": "acc72e92-3100-4a04-8f5f-4fad9cd77cc5",
"filters": {
"Name/Nom": "MARY"
},
"limit": 3
}
curl
curl -X POST https://gateway.pipeworx.io/data-ontario/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ontario_catalogue_datastore","arguments":{"resource_id":"acc72e92-3100-4a04-8f5f-4fad9cd77cc5","filters":{"Name/Nom":"MARY"},"limit":3}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ontario_catalogue_datastore', {
"resource_id": "acc72e92-3100-4a04-8f5f-4fad9cd77cc5",
"filters": {
"Name/Nom": "MARY"
},
"limit": 3
});
Response shape
| Field | Type | Description |
|---|---|---|
resource_id | string | |
total | number | |
count | number | |
fields | array | |
rows | array | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"resource_id": {
"type": "string"
},
"total": {
"type": "number"
},
"count": {
"type": "number"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"label": {
"type": "null"
},
"notes": {
"type": [
"null",
"string"
]
}
},
"additionalProperties": true
}
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_id": {
"type": "number"
},
"Year/Année": {
"type": "number"
},
"Name/Nom": {
"type": "string"
},
"Frequency/Fréquence": {
"type": "number"
}
},
"additionalProperties": true
}
},
"source": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the data-ontario pack
{
"mcpServers": {
"data-ontario": {
"url": "https://gateway.pipeworx.io/data-ontario/mcp"
}
}
}
See Getting Started for client-specific install steps.