Skip to main content
Glama

Get Geometry

get_geometry
Read-onlyIdempotent

Fetch the actual simplified GeoJSON FeatureCollection geometry for a country/ADM level from geoBoundaries. WARNING: geometry payloads are large (a simplified national ADM1 set can be several MB); this only returns the simplified geometry and refuses payloads over ~4 MB, for those use get_boundaries and download the URL directly. Prefer get_boundaries unless you explicitly need the coordinates. Not valid for adm="ALL".

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": {
      "adm": "ADM0",
      "iso3": "KEN"
    },
    "name": "get_geometry"
  }
}

Input Schema

NameRequiredDescriptionDefault
admYesAdmin level (single level only; "ALL" is not supported here).
iso3YesISO-3166-1 alpha-3 country code, e.g. "FRA".
productNoBoundary product. gbOpen (default, CC-BY) | gbHumanitarian | gbAuthoritative.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "adm": "ADM0",
      +    "iso3": "KEN"
      +  },
      +  {
      +    "adm": "ADM1",
      +    "iso3": "IND",
      +    "product": "gbOpen"
      +  }
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description adds genuinely new operational context: payloads can be several MB, only simplified geometry is returned, and requests over ~4 MB are refused. It does not say what a refusal or error looks like on return, which is the only real gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what it fetches, then the size warning with a concrete threshold, then the routing advice. Every sentence carries information, though the WARNING/payload-size clause is slightly repetitive with the later refusal statement.

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 no output schema, the description still names the return type (simplified GeoJSON FeatureCollection) and the hard size ceiling, which is the key thing an agent needs to decide whether to call it. Error/refusal shape is the only unaddressed element.

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% with enum descriptions for adm and product, so the schema already carries parameter meaning. The description's only parameter-adjacent statement (adm='ALL' is invalid) largely restates the schema's own note about single-level-only. Baseline 3 is appropriate.

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 ('Fetch the actual simplified GeoJSON FeatureCollection geometry') plus the source (geoBoundaries) and scope (country/ADM level). It explicitly separates itself from get_boundaries, so an agent can pick between them without opening either 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 an explicit default ('Prefer get_boundaries unless you explicitly need the coordinates') and an explicit exclusion ('Not valid for adm="ALL"'), plus the fallback path of downloading the URL from get_boundaries when the payload is too big. That is when-to-use, when-not-to-use, and the alternative in three sentences.

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.