Skip to main content
Glama

Geo Get Country

geo_get_country
Read-onlyIdempotent

Get country information by name or ISO code (e.g., 'US', 'FR'). Returns capital, population, currency, languages, and neighboring countries. Use for regional context or facts.

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": {
      "code_or_name": "US"
    },
    "name": "geo_get_country"
  }
}

Input Schema

NameRequiredDescriptionDefault
code_or_nameYesCountry name or ISO 3166-1 alpha-2/alpha-3 code

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "area_km2": {
      +        "description": "Land area in square kilometers",
      +        "type": "number"
      +      },
      +      "borders": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "capital": {
      +        "description": "Capital city or 'N/A'",
      +        "type": "string"
      +      },
      +      "codes": {
      +        "description": "ISO country codes",
      +        "properties": {
      +          "alpha2": {
      +            "description": "ISO 3166-1 alpha-2 code",
      +            "type": "string"
      +          },
      +          "alpha3": {
      +            "description": "ISO 3166-1 alpha-3 code",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "alpha2",
      +          "alpha3"
      +        ],
      +        "type": "object"
      +      },
      +      "currencies": {
      +        "description": "List of currencies with symbols",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "flag_image": {
      +        "type": "string"
      +      },
      +      "found": {
      +        "description": "Present and true on an answer; a miss is the found:false branch.",
      +        "enum": [
      +          true
      +        ],
      +        "type": "boolean"
      +      },
      +      "languages": {
      +        "description": "List of official languages",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "latlng": {
      +        "items": {
      +          "type": "number"
      +        },
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "Common country name",
      +        "type": "string"
      +      },
      +      "official_name": {
      +        "description": "Official country name",
      +        "type": "string"
      +      },
      +      "population": {
      +        "description": "Total population",
      +        "type": "number"
      +      },
      +      "population_year": {
      +        "type": "string"
      +      },
      +      "region": {
      +        "description": "Geographic region",
      +        "type": "string"
      +      },
      +      "subregion": {
      +        "description": "Geographic subregion",
      +        "type": "string"
      +      },
      +      "timezones": {
      +        "description": "List of timezones used in country",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "tld": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "official_name",
      +      "codes",
      +      "capital",
      +      "population",
      +      "area_km2",
      +      "region",
      +      "subregion",
      +      "languages",
      +      "currencies"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      +    "properties": {
      +      "found": {
      +        "enum": [
      +          false
      +        ],
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "found"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "area_km2": {
      -    "description": "Land area in square kilometers",
      -    "type": "number"
      -  },
      -  "borders": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "capital": {
      -    "description": "Capital city or 'N/A'",
      -    "type": "string"
      -  },
      -  "codes": {
      -    "description": "ISO country codes",
      -    "properties": {
      -      "alpha2": {
      -        "description": "ISO 3166-1 alpha-2 code",
      -        "type": "string"
      -      },
      -      "alpha3": {
      -        "description": "ISO 3166-1 alpha-3 code",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "alpha2",
      -      "alpha3"
      -    ],
      -    "type": "object"
      -  },
      -  "currencies": {
      -    "description": "List of currencies with symbols",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "flag_image": {
      -    "type": "string"
      -  },
      -  "languages": {
      -    "description": "List of official languages",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "latlng": {
      -    "items": {
      -      "type": "number"
      -    },
      -    "type": "array"
      -  },
      -  "name": {
      -    "description": "Common country name",
      -    "type": "string"
      -  },
      -  "official_name": {
      -    "description": "Official country name",
      -    "type": "string"
      -  },
      -  "population": {
      -    "description": "Total population",
      -    "type": "number"
      -  },
      -  "population_year": {
      -    "type": "string"
      -  },
      -  "region": {
      -    "description": "Geographic region",
      -    "type": "string"
      -  },
      -  "subregion": {
      -    "description": "Geographic subregion",
      -    "type": "string"
      -  },
      -  "timezones": {
      -    "description": "List of timezones used in country",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "tld": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "name",
      -  "official_name",
      -  "codes",
      -  "capital",
      -  "population",
      -  "area_km2",
      -  "region",
      -  "subregion",
      -  "languages",
      -  "currencies"
      -]
  2. Changed6 schema fields changed
    • addedOutput schema / properties / borders
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / flag_image
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / latlng
      Added value: +{
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / population_year
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / tld
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "name",
      -  "official_name",
      -  "codes",
      -  "capital",
      -  "population",
      -  "area_km2",
      -  "region",
      -  "subregion",
      -  "languages",
      -  "currencies",
      -  "timezones"
      -]New value: +[
      +  "name",
      +  "official_name",
      +  "codes",
      +  "capital",
      +  "population",
      +  "area_km2",
      +  "region",
      +  "subregion",
      +  "languages",
      +  "currencies"
      +]
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds value by enumerating the returned fields and emphasizing that either a name or an ISO code is acceptable. It stays silent on behavior for unknown or ambiguous country inputs, which is a minor gap given the output schema exists.

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?

Three short sentences: what it accepts, what it returns, and when to reach for it. Front-loaded with the core action and no filler or redundant phrasing.

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 shape, and full schema coverage and rich annotations remove most burden. The only meaningful omission is not handling the not-found or ambiguous-name case for a lookup tool.

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 parameter already documents 'Country name or ISO 3166-1 alpha-2/alpha-3 code'. The description restates this with examples ('US', 'FR'), adding only illustrative clarity. Baseline 3 applies when the schema carries parameter documentation.

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 and resource ('Get country information') plus the accepted input forms and the exact fields returned (capital, population, currency, languages, neighbors). That is enough to tell it apart from geo_get_timezone and geo_geocode on subject matter, though it never explicitly names those alternatives.

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?

'Use for regional context or facts' is a loose usage hint rather than guidance on when to pick this over geo_geocode or geo_reverse_geocode. There are no exclusions, no prerequisites, and no disambiguation from siblings.

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.