Skip to main content
Glama

Compare Countries

compare_countries
Read-onlyIdempotent

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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
sourceNo
rankingNo
indicatorNo
provenanceNoWhere this answer came from. served_at is when Datakoot answered (UTC); upstream lists the official sources consulted. Datakoot may serve a briefly cached copy, so the source's own observation can be older than served_at.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / provenance
      Added value: +{
      +  "description": "Where this answer came from. served_at is when Datakoot answered (UTC); upstream lists the official sources consulted. Datakoot may serve a briefly cached copy, so the source's own observation can be older than served_at.",
      +  "properties": {
      +    "may_be_cached": {
      +      "type": "boolean"
      +    },
      +    "publisher": {
      +      "type": "string"
      +    },
      +    "served_at": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "upstream": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "code": {},
      +    "indicator": {},
      +    "ranking": {},
      +    "source": {}
      +  },
      +  "type": "object"
      +}
  3. 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, openWorld and non-destructive, so the safety profile is covered. The description still earns credit for disclosing the non-obvious data semantics: only the latest available value per country is returned, which rules out time-series interpretation. It omits anything about missing/stale data for lagging reporters, so it stops short of 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?

Two tight sentences, zero filler, with the core scope statement (one indicator, several countries) front-loaded ahead of the softer benefit claim. Nothing needs trimming.

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 an output schema present, return values need no explanation, and annotations cover the read-only profile. For a 2-parameter read-only tool the description is sufficient, though it could note behavior when a country lacks data for the requested 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 description coverage is 100% and the enum list of indicator keys plus country-code example already live in the schema. The description's 'one indicator' wording reinforces cardinality but adds no format or validation detail beyond what is structured. Baseline 3 is correct when the schema does the heavy lifting.

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 (Compare) and resource (one indicator across several countries), plus the temporal scope (latest available value each). It contrasts implicitly with country_profile by scoping to a single indicator, but never names a sibling, so an agent must infer the boundary from sibling names alone.

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?

The clause 'Good for ranking or benchmarking economies' points at intended use cases, so usage is implied rather than stated as a rule. There is no explicit when-not guidance and no named alternative (e.g. country_indicator for single-country time series), leaving the agent to work out the routing itself.

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.