query

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

SoQL query.

Parameters

NameTypeRequiredDescription
resource_idstringyes
wherestringno
selectstringno
groupstringno
orderstringno
limitnumberno
offsetnumberno

Example call

Arguments

{
  "resource_id": "a9u6-brt9"
}

curl

curl -X POST https://gateway.pipeworx.io/data-cityofchicago/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query","arguments":{"resource_id":"a9u6-brt9"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('query', {
  "resource_id": "a9u6-brt9"
});

More examples

{
  "resource_id": "a9u6-brt9",
  "where": "year > 2020",
  "select": "case_number, date, location",
  "limit": 100
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarrayArray of records matching SoQL query
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "Array of records matching SoQL query",
      "items": {
        "type": "object",
        "description": "Record from resource matching query criteria"
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of items returned."
    }
  },
  "required": [
    "items",
    "count"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build June 12, 2026