get_data
Pack: kolada-se · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_data for the schema, then POST the same URL with its arguments for the data.
Fetch numeric KPI values from Kolada for a specific indicator (kpiId), Swedish municipality or region (municipalityId), and year. Returns value rows broken down by gender: T=total, K=women (kvinnor), M=men (män); non-gendered KPIs return only T.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
kpiId | string | yes | KPI id from search_kpi, e.g. “N15428”. |
municipalityId | string | yes | Municipality/region id from list_municipalities, e.g. “0180” (Stockholm). |
year | integer | yes | Four-digit year, e.g. 2022. |
Example call
Arguments
{
"kpiId": "N15428",
"municipalityId": "0180",
"year": 2022
}
curl
curl -X POST https://gateway.pipeworx.io/kolada-se/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_data","arguments":{"kpiId":"N15428","municipalityId":"0180","year":2022}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_data', {
"kpiId": "N15428",
"municipalityId": "0180",
"year": 2022
});
More examples
{
"kpiId": "N15501",
"municipalityId": "1480",
"year": 2023
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the kolada-se pack
{
"mcpServers": {
"kolada-se": {
"url": "https://gateway.pipeworx.io/kolada-se/mcp"
}
}
}
See Getting Started for client-specific install steps.