Skip to main content
Glama

IMF Global Macro DataMapper MCP

Compare countries on an IMF indicator

compare_countries
Read-onlyIdempotent

Compare 2 to 15 economies side-by-side on any IMF DataMapper macroeconomic indicator across a single year or year range, ranked descending by latest value.

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
yearNoOptional single year to compare (overrides start_year/end_year).
end_yearNoEnd year if comparing a range. Default 2027.
countriesYesArray of 2 to 15 ISO-3 country codes (e.g. ["USA", "CHN", "DEU", "JPN", "IND"]).
indicatorYesIMF indicator code (e.g. "NGDP_RPCH", "PCPIPCH", "GGXWDG_NGDP").
start_yearNoStart year if comparing a range. Default 2023.

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?

The annotations already establish that this is a safe, idempotent, non-destructive read, so the description is not carrying the safety burden. It does add genuinely new behavioral information beyond the annotations and schema: results are ranked descending by latest value, and the comparison is scoped to a single indicator at a time. It omits what a year-range call actually returns (per-year rows vs. an aggregate) and any failure behavior for invalid codes.

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?

One sentence, front-loaded with the verb and resource, followed by the constraints and the ordering guarantee. There is no filler and nothing repeated from the title.

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 five-parameter read-only tool with full schema coverage and no output schema, the definition covers the essentials and volunteers the result ordering, which is the main thing an agent cannot get from structured fields. The remaining gap is how a year-range request is resolved into output, which matters for interpreting results.

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 each parameter already documents its role, defaults, bounds, and the ISO-3 format. The description restates the year-vs-range choice without adding precedence or format detail, so it does not meaningfully exceed the schema. Baseline 3 is appropriate.

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 concrete verb (compare) with a specific resource (IMF DataMapper macroeconomic indicator), plus explicit scope: 2 to 15 economies, single year or range, ranked descending. It does not distinguish itself from get_indicator_data or get_country_macro_snapshot, so an agent must infer the multi-country angle on its own.

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 implied by the word 'side-by-side' and the 2-15 country constraint, which signals this is the multi-country path rather than a single-country lookup. There is no explicit when-to-use/when-not guidance and no named alternative, so selection against the sibling tools is left to inference.

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.