get_kpi_data
Retrieve actual KPI values for Swedish municipalities or organizational units, with filtering by year and gender for statistical analysis and comparisons.
Instructions
Hämta faktiska KPI-datavärden för specifika kommuner eller organisationsenheter. Kan filtrera efter år och kön (T=Totalt, M=Män, K=Kvinnor).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kpi_id": "<kpi_id>"
},
"name": "get_kpi_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi_id | Yes | KPI-ID för att hämta data | |
| municipality_id | No | Kommun-ID (använd detta ELLER ou_id, inte båda) | |
| ou_id | No | Organisationsenhet-ID (använd detta ELLER municipality_id, inte båda) | |
| years | No | Filtrera efter specifika år (t.ex. [2020, 2021, 2022]) | |
| gender | No | Könsfilter: T=Totalt, M=Män, K=Kvinnor, all=visa alla | all |