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

NameTypeRequiredDescription
datasetstringyesDataset key: ${KEYS.join(’, ’)}.
wherestringnoSQL where clause. Default “1=1”.
out_fieldsstringnoComma-separated field names, or ”*” (default).
order_bystringnoe.g. “units DESC”.
limitnumbernoRows per page, default 50, max 500.
offsetnumbernoPagination offset; pass next_offset.
return_geometrybooleannoInclude 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

FieldTypeDescription
featuresarray
exceededTransferLimitboolean
globalIdFieldNamestring
objectIdFieldNamestring
fieldsarray
totalnumber
returnednumber
limitnumber
offsetnumber
next_offsetnumber
geometry_includedboolean
notestring
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.

Regenerated from source · build December 1, 2026