Get Data
get_dataFetch 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.municipalityId from list_municipalities. Returns values per gender ("T" total, "K" women, "M" men); non-gendered KPIs report only "T".
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"year": 2022,
"kpiId": "N15428",
"municipalityId": "0180"
},
"name": "get_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Four-digit year, e.g. 2022. | |
| kpiId | Yes | KPI id from search_kpi, e.g. "N15428". | |
| municipalityId | Yes | Municipality/region id from list_municipalities, e.g. "0180" (Stockholm). |