Skip to main content
Glama

World Bank Macro, Finance & ESG Indicators MCP

Compare countries across macro and ESG indicators

wb_compare_countries
Read-onlyIdempotent

Compare 2 to 15 countries or regional aggregates side by side across 1 to 6 World Bank indicators (official codes or friendly aliases like gdp, inflation, unemployment, debt_pct_gdp, co2_per_capita) for either the latest available value or a specific year. Returns both a country matrix and ranked leaderboards per indicator.

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": {
      "countries": "<countries>",
      "indicators": "<indicators>"
    },
    "name": "wb_compare_countries"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoOptional target year (e.g. 2024). Omit to use the latest non-empty observation per country.
countriesYesList of 2 to 15 ISO2/ISO3 codes or country names (e.g. ["US", "DE", "JP"]).
indicatorsYesList of 1 to 6 World Bank indicator codes or aliases (e.g. ["gdp", "inflation", "co2_per_capita"]).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive behavior, so the description's job is lighter. It still adds real context beyond them: the returned artifacts (a country matrix plus ranked leaderboards per indicator) and the default of 'latest available value' when 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?

Two sentences, no filler, and the effective constraints (2-15 countries, 1-6 indicators, latest-or-year) are front-loaded before the return-format note.

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 three-parameter read tool with full schema coverage and no output schema, the description covers scope, defaults and output shape well. Minor gaps remain, such as leaderboard sort direction and behavior when a country lacks data for an indicator.

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%, so both bounds and the year default are already documented in the schema. The description contributes concrete alias examples (unemployment, debt_pct_gdp) not listed in the schema, but that is a marginal addition over structured data and the baseline of 3 fits.

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

Purpose4/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 ... countries or regional aggregates ... across ... World Bank indicators') and bounds the scope (2-15 countries, 1-6 indicators). It implicitly separates itself from single-series siblings by framing a multi-country by multi-indicator comparison, though it never names an alternative outright.

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

Usage Guidelines3/5

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

Usage is only implied: the caller can infer this is the tool for side-by-side multi-country, multi-indicator snapshots, but the description never states when to prefer it over wb_indicator_series or wb_country_macro, nor any exclusions.

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.