bc_catalogue_datastore

Pack: data-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/bc_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 British Columbia resource by resource id (from bc_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 British Columbia, BC Data Catalogue.

Parameters

NameTypeRequiredDescription
resource_idstringyesDatastore resource id (UUID).
qstringnoFree-text search across columns.
filtersobjectnoExact-match filters as an object, e.g. {“Year”: 2020}.
sortstringnoSort clause, e.g. “Year desc”.
limitnumbernoRows (0-1000, default 20). 0 returns fields only.
offsetnumbernoRow offset for paging.

Example call

Arguments

{
  "resource_id": "a0ffabca-39cc-4e27-a13c-9c1edad357cc",
  "limit": 3
}

curl

curl -X POST https://gateway.pipeworx.io/data-bc/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bc_catalogue_datastore","arguments":{"resource_id":"a0ffabca-39cc-4e27-a13c-9c1edad357cc","limit":3}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('bc_catalogue_datastore', {
  "resource_id": "a0ffabca-39cc-4e27-a13c-9c1edad357cc",
  "limit": 3
});

Response shape

FieldTypeDescription
resource_idstring
totalnumber
countnumber
fieldsarray
rowsarray
sourcestring
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"
          }
        },
        "additionalProperties": true
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "number"
          },
          "STORE \n#": {
            "type": "string"
          },
          "NAME": {
            "type": "string"
          },
          "ADDRESS": {
            "type": "string"
          },
          "CITY": {
            "type": "string"
          },
          "POSTAL CODE": {
            "type": "string"
          },
          "PHONE": {
            "type": "string"
          }
        },
        "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-bc pack
{
  "mcpServers": {
    "data-bc": {
      "url": "https://gateway.pipeworx.io/data-bc/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 24, 2026