Skip to main content
Glama

lookup_countries

Read-onlyIdempotent

Find countries by name or two-letter code to identify a country's name, code, or currency. Use it for country code lookups, not city or airport codes.

Instructions

Look up countries by name or two-letter country code.

Use when the user asks which country a code belongs to, or wants that country's code or currency. For a city or airport code use lookup_cities or lookup_airports; this tool does not search flight prices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return (1-500, default 50).
localeNo2-letter locale for names (e.g. "en", "ru"). Defaults to the server's locale.
searchNoCountry name substring or exact code (e.g. "thailand", "TH").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.3

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already carry readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered by structured fields. The description adds only light behavioral value: the scope exclusion about flight prices and the fact that currency is returned. No pagination or locale behavior is disclosed.

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 tight sentences with the primary capability front-loaded and the sibling routing in the second. No filler or restatement of the tool name.

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?

With an output schema present and rich annotations, the description only needs to carry purpose, usage context and sibling routing, all of which it does. Nothing required for correct invocation 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 limit, locale and search are already documented in the schema. The description mentions the two accepted lookup forms but adds no format or constraint detail beyond what the schema provides; baseline 3 applies.

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?

States a specific verb+resource ('Look up countries') and the two acceptable input forms (name or two-letter country code). It also names the sibling tools it is not (lookup_cities, lookup_airports), so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit activation conditions are given ('when the user asks which country a code belongs to, or wants that country's code or currency'), plus named alternatives for the confusable cases and an explicit exclusion ('this tool does not search flight prices').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.