Skip to main content
Glama

Resolve a country name to its ISO-2 code

country_code

Resolve a country name (or an existing ISO 3166-1 alpha-2 code) to its uppercase ISO 3166-1 alpha-2 code — e.g. "Kenya" → "KE". Useful before calling check_visa. Returns an error if the name can't be resolved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesA country name or ISO-2 code, e.g. "Kenya" or "KE".

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that the operation normalizes to uppercase, accepts both names and codes, and returns an error on unresolvable input, which covers the key behaviors of this simple lookup tool.

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?

The description is two sentences, front-loaded with the main verb and resource, and efficiently includes an example, usage context, and error behavior without any redundant or fluff content.

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?

Given the tool's low complexity, one parameter, and no output schema, the description adequately covers the function, including return behavior (uppercase code) and error conditions. It could have explicitly stated the return type, but it is clearly implied from the phrasing.

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?

The schema already describes the sole parameter 'name' with 100% coverage, so the description adds limited meaning. The example 'Kenya' → 'KE' reinforces the schema but does not fundamentally alter parameter semantics, warranting the baseline score of 3.

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 clearly states a specific action ('Resolve') and resource (country name to ISO-3166-1 alpha-2 code), includes a concrete example ('Kenya' → 'KE'), and explicitly ties to the sibling tool check_visa, making its purpose unmistakable and distinct.

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?

The description provides clear usage context by stating 'Useful before calling check_visa' and mentions it accepts existing ISO-2 codes, implying it can also validate codes. However, it does not explicitly state when not to use it, leaving some room for interpretation.

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.

TDQS

A4.3/5.0
Disambiguation5/5

The two tools have completely distinct purposes: check_visa answers visa requirements, while country_code resolves country names to codes. There is no overlap or ambiguity between them.

Naming Consistency4/5

check_visa follows a verb_noun pattern, but country_code uses noun-only. However, both names are clear and intuitive, and the minor inconsistency is negligible given the small tool count.

Tool Count4/5

Two tools is on the low end, but the server has a narrowly defined purpose: visa checking with a supporting code resolver. This scope justifies the small count without feeling incomplete.

Completeness4/5

The core workflow (resolve country code, then check visa) is fully covered. No obvious missing operations for the stated domain, though additional features like multi-passport comparison could exist but are not essential.