Skip to main content
Glama

Country Stats Facts

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) 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.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
yearYes
as_ofYes
valueYes
noticeYes
sourceYes
statusYes
countryYes
messageNo
indicatorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real behavioral context: annual World Bank-only sourcing, no live data/forecasts/regions, and the fallback of returning the latest year when no year is passed. The return-field list is partly redundant given an output schema exists, which keeps this from a 5.

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 dense sentences, front-loaded with the usage trigger and clipped with the scope limitation. Every clause carries information; nothing is padding.

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?

An output schema exists, so the description does not need to spell out return values in depth, and it supplies the remaining essentials: source scope, year fallback, and what data is out of bounds. An agent has everything needed to call this correctly.

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 coverage is 100% and each parameter is already documented, including the indicator enum and the year default. The description restates the indicator list and country formats rather than adding syntax or resolution rules beyond the schema, so 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?

States a specific verb and resource ('one official statistic for one country') and anchors it with two concrete user-phrasing examples. The singular 'one statistic for one country' scope immediately separates it from compare_countries and get_imf_forecast.

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?

Gives an explicit trigger ('Use this when the user asks for one official statistic for one country') and clear exclusions ('no live data, forecasts or regions'), which implicitly rules out the forecast sibling. It stops short of naming the alternative tools directly, so the routing is inferred rather than stated.

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.

Resources