Skip to main content
Glama
Satyampatel779

country-analytics-mcp

get_country_metric

Retrieve a single country's GDP, population, or GDP per capita by ISO code or name for a given or latest year, with optional currency conversion.

Instructions

One country's gdp, population, or gdp_per_capita for a year.

  • country: ISO2/ISO3 code or a name from either source ("France", "FR", "FRA", "Czechia").

  • metric: gdp | population | gdp_per_capita (GDP divided by population, same year).

  • year: a year like "2022", or "latest" (walks back past null years and reports year_used).

  • currency: any Frankfurter-supported currency (GDP is natively current US$).

  • fx_date: "YYYY-MM-DD" or "latest". Default: year-end of a pinned year (falls back to the last trading day, e.g. 2022 -> 2022-12-30), or the latest rate when year='latest'. The response includes the exact year used, FX rate and date, flags, and sources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNolatest
metricNogdp
countryYes
fx_dateNo
currencyNoUSD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses that year='latest' walks back past null years, that fx_date defaults to year-end of a pinned year with a last-trading-day fallback, and that the response reports the actual year and FX rate used. It omits any auth, rate-limit, or error behavior, keeping it out of 5 territory.

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?

Front-loaded one-line purpose followed by a tight per-parameter bullet list; every line conveys format, allowed values, or default behavior. No filler.

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 parameter-heavy read tool with no output schema and no annotations, the description covers defaults, fallback behavior, and the shape of the response (year used, FX rate and date, flags, sources). It is nearly self-sufficient, though edge cases like invalid country codes or missing data are not addressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it documents all five parameters: accepted country code formats with examples, the metric enum values with a definition of gdp_per_capita, year formats plus 'latest' semantics, accepted currencies, and the fx_date format/default. This adds substantial meaning beyond the bare schema titles.

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+resource combination ("One country's gdp, population, or gdp_per_capita for a year") and enumerates the metric dimension, which implicitly separates it from aggregate siblings like region_total and rank_countries. It does not explicitly name or contrast a sibling, so it stops short of a 5.

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 bullets rather than stated: an agent can infer this is for a single country's metric, but the description never says when to pick it over region_total, rank_countries, or convert_currency. No exclusions or prerequisites are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.