Skip to main content
Glama

Cross-country ranking

get_ranking
Read-onlyIdempotent

Ranks every covered country on one indicator (« which country has the highest inflation », « where does France stand on debt ») for the latest period most countries share (one harmonised source). Neutral order: highest value first, not best or worst. Not every indicator is rankable (indexes, counts, amounts in local currency are not).

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>"
    },
    "name": "get_ranking"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoLanguage of names and period labels (default en).
indicatorYesIndicator code from `search`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / language / enum
      Previous value: -[
      -  "en",
      -  "fr",
      -  "es",
      -  "de",
      -  "it",
      -  "pt",
      -  "id",
      -  "tr",
      -  "ru",
      -  "ja",
      -  "ko",
      -  "zh"
      -]New value: +[
      +  "en",
      +  "fr",
      +  "es",
      +  "de",
      +  "it",
      +  "pt",
      +  "id",
      +  "tr",
      +  "ru",
      +  "ja",
      +  "ko",
      +  "zh",
      +  "ar"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds substantive behaviour the annotations cannot express: the period is chosen as the latest one most countries share from a single harmonised source, and the ordering is neutral (highest first, not best/worst). It does not say how many countries come back or what the result entries contain.

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?

Three sentences, front-loaded with the verb and scope, then the period logic, then the ordering semantics, then the eligibility caveat. Nothing repeats the name or title and the parenthetical examples earn their space by disambiguating intent.

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 two-parameter read tool with a fully described schema and existing annotations, the description covers what the tool computes, which period it uses, and how results are ordered. The notable residual gap is the return shape — whether output is a full ranked list per country and what fields accompany each rank — since no output schema exists to cover it.

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 two parameters are already documented, making 3 the baseline. The description still adds real meaning to the required `indicator` parameter by stating the eligibility rule — index, count and local-currency indicators cannot be ranked — which constrains which code from `search` is valid here.

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?

The description states a specific verb and resource with explicit scope: "Ranks every covered country on one indicator," and supplies two concrete examples of the question shape it answers. It is clear the tool produces a full cross-country ordering rather than a subset comparison, which implicitly distinguishes it from a pairwise/compare tool, but no sibling is named directly.

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?

It gives clear when-to-use framing through the two italicised question examples and a genuine when-not: indexes, counts and local-currency amounts are not rankable. It stops short of routing the agent to the right alternative (e.g. a comparison or series tool) for those unrankable indicators or for non-latest periods.

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