Query DHIS2 analytics
query_analyticsGet aggregated values for a single indicator, split by period and organisation unit, from DHIS2. Run search_indicators beforehand to get the indicator id.
Instructions
Get aggregated values for one indicator, split by period, for one organisation unit. Run search_indicators first to get the indicator id.
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": {
"indicator_id": "<indicator_id>"
},
"name": "query_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | DHIS2 period: 'LAST_12_MONTHS', 'THIS_YEAR', '2025', or '202501' | LAST_12_MONTHS |
| org_unit | No | Organisation unit id. 'USER_ORGUNIT' means the account's root unit | USER_ORGUNIT |
| indicator_id | Yes | Indicator id, from search_indicators |