get_latest_value
Retrieve a UNESCO UIS indicator value for a country or region. Provide the indicator code and optional year to obtain a single data point.
Instructions
Get the value of a UNESCO UIS indicator for a specific country or region.
Returns a single data point — either the most recent available value, or the value for a specific year. Use this for answering questions like: "What is the literacy rate in Kenya?" or "What was the completion rate in Sub-Saharan Africa in 2015?"
GEOGRAPHY RULES:
For countries: pass the ISO3 code directly (e.g. "KEN", "FRA").
For regions: ALWAYS call search_geo_units first — it will ask the user which grouping system to use. Regional names map to multiple codes with different country compositions; using the wrong one gives silently wrong data.
If omitted, the tool will interactively ask the user for the geography.
To find indicator codes, use search_indicators. Always show the user the year alongside the value, since data is not always available for the most recent years.
Args: indicator_code: The indicator code (e.g. "CR.1", "LR.AG15T99"). geo_unit_code: ISO3 code for countries, or a confirmed code from search_geo_units for regions. Omit to trigger interactive geography lookup. year: Optional. The specific year to retrieve. If omitted, returns the most recent available value. If no data exists for the requested year, returns the nearest available year instead, with a note.
Returns: A dictionary with: - "indicator_code": The indicator code. - "indicator_name": Full name of the indicator. - "geo_unit_code": The geo unit code. - "geo_unit_name": Human-readable geography name. - "year": The year of the returned value. - "value": The numeric data value. - "qualifier": Data quality flag if present (e.g. "<", "~"), else null. - "note": Context about the data point (e.g. year range, year substitution).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indicator_code | Yes | ||
| geo_unit_code | No | ||
| year | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||