Skip to main content
Glama

Countries By Region

countries_by_region
Read-onlyIdempotent

List all countries in a region (e.g., "Africa", "Europe", "Asia"). Returns name, capital, population, area, and flag emoji.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "region": "europe"
    },
    "name": "countries_by_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionYesRegion name, one of: africa, americas, asia, europe, oceania

Output Schema

NameRequiredDescriptionDefault
countYesTotal number of countries in region
regionYesRegion name queried
countriesYesCountries in the region sorted by population descending

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / region / description
      Previous value: -"Region name — one of: africa, americas, asia, europe, oceania"New value: +"Region name, one of: africa, americas, asia, europe, oceania"
  2. Changed1 schema field changed
    • changedOutput schema / properties / countries / items / properties / population / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "description": "Total number of countries in region",
      +      "type": "integer"
      +    },
      +    "countries": {
      +      "description": "Countries in the region sorted by population descending",
      +      "items": {
      +        "properties": {
      +          "capital": {
      +            "description": "Capital city or N/A if not available",
      +            "type": "string"
      +          },
      +          "flag": {
      +            "description": "Flag emoji or empty string",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Common country name",
      +            "type": "string"
      +          },
      +          "population": {
      +            "description": "Total population",
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "capital",
      +          "population",
      +          "flag"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "region": {
      +      "description": "Region name queried",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "region",
      +    "count",
      +    "countries"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "region": "europe"
      +  },
      +  {
      +    "region": "asia"
      +  }
      +]
  5. First observed

TDQS

A3.6/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 safety and idempotency are covered externally. The description adds the returned field set and sample region values, but says nothing about result size, ordering, or behavior for an unknown region.

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 short sentences with no filler; the operation is front-loaded and the return fields are appended as secondary information. Nothing could be removed without losing 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?

With an output schema present, the description need not explain return values, and annotations cover the safety profile, so this is close to complete for a one-parameter lookup. The only residual gap is guidance versus sibling list tools.

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% and the single parameter already documents the allowed values, so the schema does the heavy lifting. The description's examples ('Africa', 'Europe', 'Asia') add illustrative value but are capitalized while the schema enumerates lowercase tokens, which is a minor mismatch rather than added precision.

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?

The description gives a specific verb ('List') plus resource ('all countries') and a scoping dimension ('in a region'), which implicitly separates it from siblings like countries_by_currency and countries_by_language. It stops short of explicitly naming an alternative, so it is clear but not maximally differentiated.

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 only implied by the phrase 'in a region' — the description never states when to pick this over countries_by_currency, countries_by_language, or search_countries. An agent can infer the boundary from the parameter name, but nothing is spelled out.

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.