Skip to main content
Glama

GDP by country, World Bank data: current US$, real growth and per capita

econ_gdp
Read-only

GDP of any country from World Bank data: GDP in current US dollars, annual real GDP growth in % and GDP per capita in US dollars, for the last 1-10 years with the newest year first. Country by ISO code (SE, SWE) or English name. Read from a committed World Bank Open Data snapshot (CC BY 4.0), so every call answers at once; the snapshot date is in the answer. Use for country comparisons, market sizing and macro context. Example: country=SE. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "country": "<country>"
    },
    "name": "econ_gdp"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoYears of history to return, 1-10 (default 5)
countryYesISO 3166 code (SE, SWE) or English country name (Sweden)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / years / maximum
      Previous value: -9007199254740991New value: +10
    • changedInput schema / properties / years / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-open-world, non-idempotent), while the description adds substantive context they cannot: data comes from a committed World Bank Open Data snapshot (CC BY 4.0), the snapshot date is returned, responses are immediate, licensing is CC BY 4.0, and billing is $0.01/call with the first 10 free and failed calls free. The cost note also explains why the operation is non-idempotent in practice (repeats are charged).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what is returned, then input format, then provenance/latency, then use cases, then pricing — a sensible priority order with no filler sentences. Minor redundancy: "reads or computes only and changes nothing" restates readOnlyHint/destructiveHint already in the annotations, and the pricing/provenance clauses are packed tightly into long compound sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description names the returned metrics, the year window, ordering, and freshness provenance, plus cost and licensing. For a two-parameter read-only lookup that is everything an agent needs to decide to call it and interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents both parameters; the baseline would be 3. The description goes slightly beyond it by clarifying that ISO codes may be two- or three-letter (SE, SWE) and that output ordering is newest year first, which the schema's "years" field does not state.

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

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (GDP of any country) and enumerates exactly what is returned: current US$ GDP, annual real growth %, and GDP per capita. That scope cleanly separates it from siblings like econ_inflation, econ_population, and econ_national_debt without needing to name them.

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?

"Use for country comparisons, market sizing and macro context" gives clear positive guidance on when to reach for it, and the example (country=SE) illustrates invocation. It stops short of any exclusion or explicit routing to adjacent tools, so the agent must infer that inflation/population questions belong elsewhere.

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