richmond_bc_query_dataset
Pack: richmond-bc · 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/richmond_bc_query_dataset for the schema, then POST the same URL with its arguments for the data.
Query one City of Richmond, British Columbia, Canada public GIS dataset by dataset key (from richmond_bc_list_datasets), e.g. housing_sites, ev_chargers_current, park_washrooms. SQL-like where (e.g. “units > 50” or “name LIKE ‘%Court%’”), out_fields, order_by, limit (default 50, max 500), offset. Returns attribute rows plus total and next_offset. Geometry is off by default. Contact e-mail and phone fields are removed from every row.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dataset | string | yes | Dataset key: ${KEYS.join(’, ’)}. |
where | string | no | SQL where clause. Default “1=1”. |
out_fields | string | no | Comma-separated field names, or ”*” (default). |
order_by | string | no | e.g. “units DESC”. |
limit | number | no | Rows per page, default 50, max 500. |
offset | number | no | Pagination offset; pass next_offset. |
return_geometry | boolean | no | Include geometry (default false). |
Example call
Arguments
{
"dataset": "housing_sites",
"where": "units > 50",
"out_fields": "name,address,units,housing_type",
"order_by": "units DESC",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/richmond-bc/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"richmond_bc_query_dataset","arguments":{"dataset":"housing_sites","where":"units > 50","out_fields":"name,address,units,housing_type","order_by":"units DESC","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('richmond_bc_query_dataset', {
"dataset": "housing_sites",
"where": "units > 50",
"out_fields": "name,address,units,housing_type",
"order_by": "units DESC",
"limit": 5
});
Response shape
| Field | Type | Description |
|---|---|---|
features | array | |
exceededTransferLimit | boolean | |
globalIdFieldName | string | |
objectIdFieldName | string | |
fields | array | |
total | number | |
returned | number | |
limit | number | |
offset | number | |
next_offset | number | |
geometry_included | boolean | |
note | string |
Full JSON Schema
{
"type": "object",
"properties": {
"features": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attributes": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"name": {
"type": "string"
},
"units": {
"type": "number"
},
"housing_type": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"exceededTransferLimit": {
"type": "boolean"
},
"globalIdFieldName": {
"type": "string"
},
"objectIdFieldName": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"modelName": {
"type": "string"
},
"defaultValue": {
"type": "null"
},
"name": {
"type": "string"
},
"length": {
"type": "number"
},
"alias": {
"type": "string"
},
"type": {
"type": "string"
}
},
"additionalProperties": true
}
},
"total": {
"type": "number"
},
"returned": {
"type": "number"
},
"limit": {
"type": "number"
},
"offset": {
"type": "number"
},
"next_offset": {
"type": "number"
},
"geometry_included": {
"type": "boolean"
},
"note": {
"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 richmond-bc pack
{
"mcpServers": {
"richmond-bc": {
"url": "https://gateway.pipeworx.io/richmond-bc/mcp"
}
}
}
See Getting Started for client-specific install steps.