get_kpi_trend
Analyze historical trends of Swedish municipal KPIs to track performance changes over time. Retrieve trend data for specific indicators and municipalities with gender filtering options.
Instructions
Hämta historisk trenddata för ett nyckeltal som visar förändringar över tid. Användbart för att analysera utveckling och identifiera trender. Stöder könsfiltrering (T/M/K).
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>",
"municipality_id": "<municipality_id>",
"start_year": "<start_year>"
},
"name": "get_kpi_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi_id | Yes | KPI-ID att analysera | |
| municipality_id | Yes | Kommun-ID | |
| start_year | Yes | Startår för trendanalysen | |
| end_year | No | Slutår (standard: innevarande år) | |
| gender | No | Könsfilter: T=Totalt, M=Män, K=Kvinnor, all=visa alla | all |