Skip to main content
Glama

Get a country statistic

get_country_indicator
Read-onlyIdempotent

Use this when the user asks for one official statistic for one country, such as "what is Vietnam's population?" or "what was unemployment in Spain in 2022?". Pass the country (name or ISO code), the indicator (population, gdp, gdp_per_capita, gdp_growth, inflation, unemployment, life_expectancy, fertility_rate, urban_population, internet_users, exports, gini, co2_per_capita, electricity_use, population_density) and optionally a year. Returns the value, its year and unit, the source and the date it was last updated; without a year it returns the latest year with data. It reads annual World Bank statistics only: no live data, forecasts or regions.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "country": "DE",
      "indicator": "population"
    },
    "name": "get_country_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoA specific calendar year; leave out for the latest year with data
countryYesA country name or ISO code, such as "Vietnam", "VN" or "VNM"
indicatorYespopulation, gdp, gdp_per_capita, gdp_growth, inflation, unemployment, life_expectancy and the other listed series

Output Schema

NameRequiredDescriptionDefault
yearYes
as_ofYesISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch.
valueYes
noticeYes
sourceYesWho the data comes from, to cite and to check it against.
statusYes
countryYes
messageNo
indicatorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / indicator / enum
      Previous value: -[
      -  "population",
      -  "gdp",
      -  "gdp_per_capita",
      -  "gdp_growth",
      -  "inflation",
      -  "unemployment",
      -  "life_expectancy",
      -  "fertility_rate",
      -  "urban_population",
      -  "internet_users",
      -  "exports",
      -  "gini",
      -  "co2_per_capita",
      -  "electricity_use"
      -]New value: +[
      +  "population",
      +  "gdp",
      +  "gdp_per_capita",
      +  "gdp_growth",
      +  "inflation",
      +  "unemployment",
      +  "life_expectancy",
      +  "fertility_rate",
      +  "urban_population",
      +  "internet_users",
      +  "exports",
      +  "gini",
      +  "co2_per_capita",
      +  "electricity_use",
      +  "population_density"
      +]
  2. Changed6 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "country": "DE",
      +    "indicator": "population"
      +  }
      +]
    • addedOutput schema / properties / as_of / description
      Added value: +"ISO 8601 time the data was published by its source or fetched from it. A cached answer keeps the time of its fetch."
    • addedOutput schema / properties / source / description
      Added value: +"Who the data comes from, to cite and to check it against."
    • addedOutput schema / properties / source / properties
      Added value: +{
      +  "name": {
      +    "type": "string"
      +  },
      +  "url": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / source / required
      Added value: +[
      +  "name",
      +  "url"
      +]
    • changedOutput schema / properties / source / type
      Previous value: -"string"New value: +"object"
  3. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  4. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, non-destructive and open-world access, so the description needn't repeat safety. It earns credit by adding scope and staleness traits the annotations cannot convey: annual World Bank data only, no forecasts, and a documented latest-year fallback when the year is omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the trigger, then the arguments, then the return shape and scope limits. The quoted user-phrasings make it scannable, and every clause carries information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read tool with an output schema and full annotation coverage, the description covers what it does, how to call it, what comes back, and the limits of the data source. Nothing needed to select or invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents country format, the indicator enum and the year default. The description restates the indicator list and the optional-year behavior rather than adding formats or constraints beyond it, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get one official statistic for one country" states a specific verb, resource and cardinality constraint, backed by concrete examples ("what is Vietnam's population?"). The closing line "annual World Bank statistics only: no live data, forecasts or regions" sharply separates it from forecast/multi-country siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger ("Use this when the user asks for one official statistic for one country") plus exclusions for live data, forecasts and regions. The "one country" constraint implicitly routes multi-country comparisons elsewhere, but no sibling is named for that case, so it falls just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.