Skip to main content
Glama

Statistics of the World

get_indicator_ranking

Read-onlyIdempotent

Rank countries by an indicator available to the caller's tier. Supports top N and bottom N queries.

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_id": "<indicator_id>"
    },
    "name": "get_indicator_ranking"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results (default 10)
orderNo"desc" for highest first, "asc" for lowest first
indicator_idYesIndicator ID. GDP accepts IMF.NGDPD or the World Bank original NY.GDP.MKTP.CD; also e.g. SP.POP.TOTL for population, FP.CPI.TOTL.ZG for inflation. Call get_available_indicators or search_indicators to browse the listed catalog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / indicator_id / description
      Previous value: -"Indicator ID (e.g., NY.GDP.MKTP.CD for GDP, SP.POP.TOTL for population, FP.CPI.TOTL.ZG for inflation)"New value: +"Indicator ID. GDP accepts IMF.NGDPD or the World Bank original NY.GDP.MKTP.CD; also e.g. SP.POP.TOTL for population, FP.CPI.TOTL.ZG for inflation. Call get_available_indicators or search_indicators to browse the listed catalog."
  2. Changed1 schema field changed
    • changedInput schema / properties / indicator_id / description
      Previous value: -"Indicator ID (e.g., IMF.NGDPD for GDP, SP.POP.TOTL for population, IMF.PCPIPCH for inflation)"New value: +"Indicator ID (e.g., NY.GDP.MKTP.CD for GDP, SP.POP.TOTL for population, FP.CPI.TOTL.ZG for inflation)"
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact — results are tier-scoped — but says nothing about pagination, maximum limit values, or failure behavior for unknown indicators.

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?

Two short sentences with the core capability front-loaded and no filler. The second sentence is slightly redundant with the order enum but usefully frames the two query modes in one clause.

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

Completeness3/5

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

For a three-parameter read tool with full schema coverage and no output schema, the definition is adequate but thin — it never indicates what a result row contains (country plus value, rank) or the behavior when the tier lacks the 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 coverage is 100%, including per-parameter descriptions and an enum for order, so the baseline is 3. The description's 'top N and bottom N' framing reinforces how limit and order combine but adds no syntax or format detail beyond the schema.

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 ('Rank countries by an indicator') and adds the top-N/bottom-N framing, which separates it from compare_countries and the raw data getters. It does not explicitly name which sibling to use instead, so it falls just short of 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?

'Available to the caller's tier' implies a gating condition, and 'top N and bottom N' implies how limit/order are used together. There is no explicit when-to-use versus compare_countries or get_economic_data, and no guidance on what to do when an indicator is unavailable at the caller's tier.

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