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.

Input Schema

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

Output Schema

TableJSON 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
    • 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"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "region": "europe"
      +  },
      +  {
      +    "region": "asia"
      +  }
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already provide strong safety signals (readOnlyHint=true, destructiveHint=false), which lowers the bar for behavioral disclosure. The description adds useful context by listing return fields, but does not mention any other behavioral traits such as case sensitivity, error handling, or pagination. This is adequate but not rich.

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 a single sentence that immediately states the action, provides an example, and lists output fields. Every word earns its place, with no fluff or repetition.

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?

For a simple one-parameter tool with a clear output schema and comprehensive annotations, the description is complete. It covers the core functionality and return values, and the schema handles the parameter details. There are no missing pieces that would prevent correct invocation.

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 coverage is 100%, and the schema documents the 'region' parameter with allowed enum values (africa, americas, asia, europe, oceania). The description's examples ('Africa', 'Europe', 'Asia') are capitalized, which could conflict with the lowercase schema values, creating minor ambiguity. It adds no new parameter meaning beyond what the schema already provides.

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 the action ('List all countries in a region') and the specific resource scope. It distinguishes itself from sibling tools like countries_by_currency and countries_by_language by focusing on region filtering, and mentions the return fields (name, capital, population, area, flag emoji) which adds specificity.

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 gives clear context for when to use this tool (when you need countries by region) but does not explicitly mention alternatives or exclusions. Since there are closely related sibling tools (e.g., countries_by_currency), a brief note about using those for currency-based lookups would elevate it to a 5.

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.