Skip to main content
Glama

Country Generator

Compare populations

compare_population
Read-only

Rank 2 to 4 countries by population, largest first, with World Bank 2024 figures.

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage for names, capitals and links.en
countriesYes2 to 4 country names or ISO codes.

Output Schema

NameRequiredDescriptionDefault
sourceYesWhere the figures come from.
rankingYesThe countries, largest population first.
play_urlYesA page on the site to play. Share it once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false). The description adds genuinely useful behavior beyond that: results are sorted largest-first and figures come from World Bank 2024, so the agent knows the data vintage and ordering. However, nothing is said about error behavior for unrecognized country names, ties, or missing data.

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?

A single sentence with no filler; the core operation, the count constraint, the ordering, and the data source are all front-loaded and each clause earns its place.

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 two-parameter read tool with full schema coverage, an output schema, and complete annotations, the description supplies enough to invoke it correctly. Only edge-case behavior (invalid country names, ties, unavailable data) is left unaddressed, which is minor here.

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 description coverage is 100%, so the schema already documents both parameters, and the baseline is 3. The description still reinforces the cardinality constraint ('2 to 4 countries') in the context of the ranking operation, which slightly clarifies how the countries array drives output ordering.

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 gives a specific verb and resource ('Rank ... countries by population'), plus ordering and data source, so an agent knows exactly what the tool returns. It does not name any sibling as an alternative, but the function is distinct enough from get_country or search_countries that confusion is unlikely.

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 only implied: comparing 2-4 countries implies a multi-country ranking use case versus a single-country lookup, but the description never states when to choose this over get_country or search_countries. There are no exclusions or prerequisite notes.

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