bps_get_data
Pack: bps-id · Endpoint: https://gateway.pipeworx.io/bps-id/mcp
Get dynamic statistical table data for a BPS variable id (model=data). Returns the datacontent values keyed by
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | BPS App ID (API key) |
var | string | yes | Variable id (varId) to fetch data for. Discover via bps_list(model=“var”). |
domain | string | no | BPS domain/region code. “0000” = national (default). |
lang | string | no | Language: “eng” (default) or “ind”. |
th | string | no | Optional period/year id to filter the data by. |
page | string | no | Optional 1-based page number. |
Example call
Arguments
{
"_apiKey": "your-bps-id-api-key",
"var": "0000012"
}
curl
curl -X POST https://gateway.pipeworx.io/bps-id/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bps_get_data","arguments":{"_apiKey":"your-bps-id-api-key","var":"0000012"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('bps_get_data', {
"_apiKey": "your-bps-id-api-key",
"var": "0000012"
});
More examples
{
"_apiKey": "your-bps-id-api-key",
"var": "0000012",
"domain": "3200",
"th": "2023"
}
Connect
Add this to your MCP client config:
{
"mcpServers": {
"bps-id": {
"url": "https://gateway.pipeworx.io/bps-id/mcp"
}
}
}
See Getting Started for client-specific install steps.