edmonton_query

Pack: data-edmonton · Endpoint: https://gateway.pipeworx.io/data-edmonton/mcp

Run a raw SoQL query against any Edmonton open-data resource (data.edmonton.ca) by its Socrata id (8-char like “ukww-xkmj”). Full SoQL: where/select/group/order/limit/offset. Use edmonton_datasets to find a resource id, or edmonton_recent for the common ones.

Parameters

NameTypeRequiredDescription
resource_idstringyesSocrata resource id, e.g. “ukww-xkmj” (police incidents).
wherestringnoSoQL $where filter (e.g. “incident_year=2025”).
selectstringnoSoQL $select (e.g. “incident_category, count(*)”).
groupstringnoSoQL $group (e.g. “incident_category”).
orderstringnoSoQL $order (e.g. “incident_datetime DESC”).
limitnumbernoMax rows (default 100, max 5000).
offsetnumbernoRow offset for paging.

Example call

Arguments

{
  "resource_id": "ukww-xkmj",
  "where": "incident_year=2025",
  "_apiKey": "your-data-edmonton-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/data-edmonton/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"edmonton_query","arguments":{"resource_id":"ukww-xkmj","where":"incident_year=2025","_apiKey":"your-data-edmonton-api-key"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('edmonton_query', {
  "resource_id": "ukww-xkmj",
  "where": "incident_year=2025",
  "_apiKey": "your-data-edmonton-api-key"
});

More examples

{
  "resource_id": "ukww-xkmj",
  "select": "incident_category, count(*)",
  "group": "incident_category",
  "order": "count(*) DESC",
  "limit": 10,
  "_apiKey": "your-data-edmonton-api-key"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "data-edmonton": {
      "url": "https://gateway.pipeworx.io/data-edmonton/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 6, 2026