Skip to main content
Glama

Global Trade Codes and Countries MCP

Search countries by name

search_countries_by_name
Read-onlyIdempotent

Search countries and territories by common, official, or native name substring.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_countries_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum countries to return (default 15).
queryYesCountry name substring (e.g. "germany", "united", "nippon").

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 declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description usefully adds that matching spans common, official AND native names, which is real behavior beyond the structured data. It still says nothing about no-match behavior, ranking/ordering, or result shape.

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 front-loaded sentence with no filler; every clause (matched name forms) carries information.

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-only search with rich annotations and full schema coverage, little more is needed. Only minor gaps remain: ordering of results and behavior on zero matches.

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 coverage is 100%, so the baseline is 3, but the description earns a bump by clarifying that the query string is matched against multiple name forms (common, official, native) — information the schema's 'Country name substring' alone does not convey.

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?

Specific verb+resource: search countries/territories by name substring. It also names the matched fields (common, official, native), which distinguishes it from the currency/region/ISO lookups among siblings — though it never states that differentiation explicitly.

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 implied by 'search ... by name substring' but there is no explicit when-to-use vs when-not guidance, no pointer to get_countries_by_region or get_country_by_iso_code for non-name queries, and no note on what to do if the query is ambiguous.

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.