Skip to main content
Glama

Sidetrip Countries

compare_countries

Read-onlyIdempotent

Compare two to six countries side by side on capital, region, population, area, languages, and currencies. An exact common name is chosen when a search also returns other countries, such as Guinea among the Guineas. Pass ISO codes when the name is still ambiguous. Use get_indicator to compare GDP, inflation, or a year range.

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": {
      "countries": "<countries>"
    },
    "name": "compare_countries"
  }
}

Input Schema

NameRequiredDescriptionDefault
countriesYesCountry names or ISO codes, from 2 to 6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral context the annotations cannot convey: name resolution prefers an exact common name over fuzzy matches (Guinea among the Guineas) and falls back to ISO codes. It stops short of describing result ordering or formatting, which keeps it below a 5.

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?

Four short sentences, front-loaded with the capability, followed by disambiguation behavior and the sibling alternative. Every sentence carries actionable information; even the Guinea example exists to explain the exact-match rule rather than decorate.

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 one-parameter, read-only, non-destructive lookup with no output schema, the definition covers what is compared, input cardinality, identifier formats, and ambiguity handling. Only minor gaps remain, such as how the comparison is structured or ordered in the response, which is a small omission given the absence of an output schema.

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% and the single parameter is already documented as 'Country names or ISO codes, from 2 to 6', so the baseline is 3. The description adds real meaning on top: the disambiguation rule for names and the explicit instruction to switch to ISO codes when a name is ambiguous, which the schema does not say.

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 and resource plus the exact comparison dimensions (capital, region, population, area, languages, currencies) and the 2-6 country bound. The closing sentence explicitly separates it from get_indicator, so an agent can distinguish it from siblings 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?

Gives real routing guidance: use this tool for country attribute comparison, use get_indicator for GDP/inflation/year-range queries. It also covers the ambiguity case, telling the agent to pass ISO codes when a name still resolves ambiguously, and explains the exact-common-name tie-break rule.

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