Skip to main content
Glama

Gpi Ranking

gpi_ranking
Read-onlyIdempotent

Rank countries by Global Peace Index score, the N most peaceful or N least peaceful countries in one call, with rank and score. PREFER for "most peaceful countries", "least peaceful/most dangerous countries", "top 10 most peaceful nations", "which countries have the worst peace ranking". direction defaults to "most_peaceful".

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 5
    },
    "name": "gpi_ranking"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many countries to return (default 10, max 50).
directionNoWhich end of the ranking to return. Default "most_peaceful".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds only that rank and score come back 'in one call', which is useful but thin; there is no discussion of ranking source, ties, coverage of countries, or freshness of the index.

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?

Two sentences, zero padding: the capability leads, then the retrieval triggers, then the default. Every clause earns its place and nothing is buried.

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 simple read-only tool with two optional params and no output schema, the description is nearly sufficient — it names the returned fields (rank and score), which the absent output schema would otherwise leave unknown. Only the ordering semantics at the limit boundary and index currency remain unstated.

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 the schema already documents the default limit of 10, the 50 max, and the direction enum values. The description restates that direction defaults to 'most_peaceful' but adds no new meaning about how limit interacts with direction or what happens beyond max 50.

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 Global Peace Index score' — and qualifies the scope as the N most or least peaceful in one call. It is clearly a ranked-list tool rather than a single-country lookup, though it never names gpi_country_score to draw the contrast explicitly.

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?

Gives explicit trigger phrases ('most peaceful countries', 'least peaceful/most dangerous countries', 'worst peace ranking') and a PREFER directive, so an agent knows when to select it. It stops short of naming an alternative for single-country score lookups or any when-not condition.

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.