Skip to main content
Glama

Opencages Geocode

opencages_geocode
Read-onlyIdempotent

Forward-geocode an address or place name to latitude/longitude using OpenCage (requires API key); supports country-code filtering, bounding box, and language; returns coordinates and structured address components.

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": {
      "query": "Paris, France"
    },
    "name": "opencages_geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
abbrvNo
limitNo
queryYes
boundsNosw_lon,sw_lat,ne_lon,ne_lat
languageNo
countrycodeNoComma-sep ISO-3166-1 alpha-2 codes.
no_annotationsNo

Output Schema

NameRequiredDescriptionDefault
rateNoRate limit information
statusNoAPI response status
resultsNoArray of geocoding results
total_resultsNoTotal number of results found

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context by disclosing the API-key requirement, but the 'returns coordinates and structured address components' clause largely duplicates the existing output schema and nothing is said about rate limits, quotas, or no-match responses.

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?

A single dense sentence front-loads the core action, service, and prerequisite, with optional capabilities following. It is efficient with no filler, though the semicolon-chained clauses make it read more like a feature list than prioritized guidance.

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 definition needn't explain return values, and annotations carry the safety and openness profile, so the remaining burden is modest. The gap is parameter-level: three of seven inputs (abbrv, limit, no_annotations) are undocumented anywhere, which an agent would need in order to tune results.

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 only 29% (bounds and countrycode documented, five parameters bare). The description compensates partially by naming country-code filtering, bounding box, and language, but leaves abbrv, limit, and no_annotations entirely unexplained in either place.

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 ('forward-geocode') and resource ('address or place name'), names the target output (latitude/longitude) and the backing service (OpenCage). 'Forward' also implicitly demarcates it from the sibling 'opencages_reverse', 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The direction of geocoding (address -> coordinates) implies when this applies, and the API-key prerequisite is disclosed. However, there is no explicit when-to-use versus when-not statement, no guidance on preferring the reverse tool, and no mention of failure behavior when a query is ambiguous or not found.

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.