query
Pack: data-cityofchicago · Endpoint: https://gateway.pipeworx.io/data-cityofchicago/mcp
SoQL query.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | |
where | string | no | |
select | string | no | |
group | string | no | |
order | string | no | |
limit | number | no | |
offset | number | no |
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
| Field | Type | Description |
|---|---|---|
items | array | Array of records matching SoQL query |
count | integer | Number 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.