Skip to main content
Glama

GeoNames Country Info

geonames.country.info
Read-onlyIdempotent

Get structured metadata for any country or all countries from the GeoNames database. Returns country code (ISO-3166 alpha-2/alpha-3/numeric), capital, continent, official languages, population, area in km², currency code, postal code format/regex, geoname_id, and a bounding box (north/south/east/west lat-lng). Omit country to retrieve all 250 countries in a single response. Supports localized country names via lang parameter. CC BY 4.0 open data, no upstream cost.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryNoISO-3166 2-letter country code (e.g. "US", "DE", "JP"). Omit to retrieve all countries.
languageNoISO 639-1 language code for localized country names (e.g. "en", "fr", "es")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With annotations already declaring readOnly, idempotent, open-world, and non-destructive behavior, the description adds useful context: CC BY 4.0 licensing, no upstream cost, the all-countries-in-one-response behavior, and the concrete return field set. It does not contradict the annotations.

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?

The description is four dense sentences with the core purpose front-loaded and the field list compactly enumerated. Every sentence contributes useful information, though the licensing/cost sentence is optional rather than essential.

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?

For a simple optional-parameter read tool with a full output schema and rich annotations, the description is complete: it covers single-country lookup, all-country retrieval, language localization, data provenance, and cost implications. Nothing needed to invoke it correctly is missing.

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%, so the baseline is 3; both parameters are already well documented in the schema. The description mostly restates what the schema says ('Omit country...', localized country names) and adds no new format or syntax detail. The phrase 'lang parameter' is also slightly inconsistent with the schema property name 'language'.

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?

The description opens with a specific verb and resource: 'Get structured metadata for any country or all countries from the GeoNames database.' It enumerates the exact returned fields, making the tool's purpose unmistakable and distinguishing it from geonames place/timezone/postal siblings and country-code-only tools.

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?

It provides clear parameter-level guidance such as 'Omit country to retrieve all 250 countries in a single response' and the localized-language option, but it never names alternatives or states when to choose this tool over siblings like world.country.code or world.country.search. The usage context is present, but tool-selection guidance is implied rather than explicit.

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.