analyze_kpi_across_municipalities
Analyze a Key Performance Indicator across Swedish municipalities to calculate statistics (min, max, mean, median) and generate rankings for benchmarking and performance comparisons.
Instructions
Analysera ett KPI över alla kommuner med statistik (min, max, medel, median) och rankning. Visar toppkommuner och bottenkommuner. Perfekt för benchmarking och jämförelser.
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>",
"year": "<year>"
},
"name": "analyze_kpi_across_municipalities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi_id | Yes | KPI-ID att analysera (t.ex. "N15033") | |
| year | Yes | År att analysera | |
| gender | No | Kön: T=Totalt, M=Män, K=Kvinnor | T |
| municipality_type | No | Kommuntyp: K=Kommun, L=Region, all=alla | K |
| top_n | No | Antal topprankade att visa (standard: 10) | |
| bottom_n | No | Antal bottenprestanda att visa (standard: 10) |