Skip to main content
Glama

Compare countries

compare_countries
Read-onlyIdempotent

Compares one indicator across 2 to 8 countries (e.g. « unemployment in France vs Germany », « debt of Italy, Spain and Greece ») from ONE harmonised source (Eurostat, OECD, IMF, ILO, BIS or World Bank), so values are comparable. Countries the source does not cover are listed apart. Last 10 years by default.

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": {
      "indicator": "<indicator>",
      "countries": "<countries>"
    },
    "name": "compare_countries"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoYears of history (default 10, max 40).
languageNoLanguage of names and period labels (default en).
countriesYesISO 3166 alpha-2 codes, 2 to 8.
indicatorYesIndicator code from `search`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / language / enum
      Previous value: -[
      -  "en",
      -  "fr",
      -  "es",
      -  "de",
      -  "it",
      -  "pt",
      -  "id",
      -  "tr",
      -  "ru",
      -  "ja",
      -  "ko",
      -  "zh"
      -]New value: +[
      +  "en",
      +  "fr",
      +  "es",
      +  "de",
      +  "it",
      +  "pt",
      +  "id",
      +  "tr",
      +  "ru",
      +  "ja",
      +  "ko",
      +  "zh",
      +  "ar"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior: uncovered countries are reported separately rather than silently dropped, and the default window is 10 years. It says nothing about units, source attribution in the response, or what happens when a country is only partially covered across the requested years.

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?

A single dense sentence with the core constraint front-loaded and illustrative examples in parentheses. No filler, and the harmonised-source rationale is packed into the same clause as the scope.

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?

With no output schema, the description carries the burden of describing returns and does so partially: it discloses the default time window and the separate listing of uncovered countries. It leaves the actual response shape (per-country, per-year values, units) unstated, which is a modest gap for a comparison tool.

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 all four parameters including the 2-8 country bound and the 10-year default. The description restates the country count and default years without adding format or syntax detail, so it earns the baseline rather than more.

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?

States a specific verb and resource with hard scope: one indicator across 2-8 countries from a single harmonised source, plus concrete examples. It implicitly separates itself from single-series retrieval (get_series) and points at `search` for indicator codes, but never contrasts with get_ranking, which is the closest sibling for multi-country indicator views.

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 clear usage context through examples and the 'ONE harmonised source ... so values are comparable' constraint, and states the prerequisite that the indicator code comes from `search`. It stops short of explicit when-not guidance or naming an alternative tool for cases like ranking many countries or pulling a single country's time 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.

Resources