search_metadata
Find metadata UIDs in DHIS2 by searching collections by name. Filter by object type and limit results for precise data lookup.
Instructions
Search any metadata collection by name and return matching UIDs.
Args: query: text to match on the object name (case-insensitive). object_type: one of dataElement, indicator, dataSet, program, organisationUnit, categoryOptionCombo, optionSet. limit: max rows to return.
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": {
"query": "<query>"
},
"name": "search_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| object_type | No | dataElement |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |