column_data
Pack: data-ny · Endpoint: https://gateway.pipeworx.io/data-ny/mcp
Distinct values in a column.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | |
column | string | yes |
Example call
Arguments
{
"resource_id": "xj2p-gjci",
"column": "borough"
}
curl
curl -X POST https://gateway.pipeworx.io/data-ny/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"column_data","arguments":{"resource_id":"xj2p-gjci","column":"borough"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('column_data', {
"resource_id": "xj2p-gjci",
"column": "borough"
});
Response shape
Always returns: items, count
| Field | Type | Description |
|---|---|---|
items | array | Array of distinct values in the specified column |
count | integer | Number of items returned. |
Full JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"description": "Array of distinct values in the specified column",
"items": {
"type": "object",
"description": "Row object containing the column value"
}
},
"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-ny": {
"url": "https://gateway.pipeworx.io/data-ny/mcp"
}
}
}
See Getting Started for client-specific install steps.