get_events
Retrieve event records for a specific DHIS2 program and organizational unit, with optional date range and limit parameters.
Instructions
Query event data for a program via the tracker API.
Args: program: program UID (find it with list_programs). org_unit: org unit UID to scope the query. limit: max events to return. occurred_after: optional ISO date (YYYY-MM-DD) lower bound. occurred_before: optional ISO date (YYYY-MM-DD) upper bound.
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": {
"program": "<program>",
"org_unit": "<org_unit>"
},
"name": "get_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| program | Yes | ||
| org_unit | Yes | ||
| occurred_after | No | ||
| occurred_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |