Skip to main content
Glama

compare_countries

Compare one indicator across several countries (latest available value each). Good for ranking or benchmarking economies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countriesYesArray of country codes or names to compare, e.g. ["US", "DE", "JP"].
indicatorYesWorld Bank indicator key: gdp, gdp_per_capita, gdp_growth, inflation, population, unemployment, life_expectancy, exports, imports, govt_debt_pct_gdp, real_interest_rate, fdi, co2_per_capita, internet_users. Call list_indicators for the full set. Raw World Bank codes are also accepted.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses a meaningful behavioral trait: only the latest available value per country is used, not a time series. However, it does not describe what happens with missing data, the return structure, or other edge-case behavior, leaving some gaps.

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?

The description is two short sentences with no filler. The core behavior is front-loaded, and the second sentence adds a directly useful use case rather than redundant detail.

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

Completeness4/5

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

For a simple two-parameter tool, the description is largely complete: it explains the purpose, the input focus, and the type of comparison. It does not describe the exact output format, but the phrase 'compare across countries' sufficiently implies a per-country result list or mapping.

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?

The input schema already provides 100% parameter coverage with detailed descriptions for countries and indicator. The description adds little parameter-specific meaning beyond reinforcing that a single indicator is compared across countries, so the baseline of 3 is appropriate.

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?

The description uses a specific verb and resource: 'Compare one indicator across several countries.' It also adds the important qualifier 'latest available value each,' making the tool's scope precise and distinguishing it from single-country or time-series siblings like country_indicator and country_profile.

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?

The phrase 'Good for ranking or benchmarking economies' gives a clear use case and context for when this tool is appropriate. However, it does not explicitly state when not to use it or name alternatives such as country_indicator or us_series.

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.