Skip to main content
Glama

Duo Data Utilities

Open Location Code (plus code) encode and decode

geo_pluscode
Read-onlyIdempotent

Encode coordinates as an Open Location Code (plus code) at a chosen length, or decode a full code back to its bounding box and centre. Also shortens a full code against a reference coordinate and recovers a shortened code given a reference, which is how plus codes are normally exchanged in text. Returns code length, precision in metres and validity. Price: $0.05 per successful call, paid over x402 (USDC on Base).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNoencode (default), decode, shorten or recover. Accepted: encode, decode, shorten, recover.
latNoLatitude for op=encode. Accepted: a number between -90 and 90.
lonNoLongitude for op=encode. Accepted: a number between -180 and 180.
codeNoPlus code for decode, shorten or recover. Accepted: at most 20 characters.
lengthNoCode length for op=encode: 2,4,6,8,10 (default),11,12,13,14,15. Accepted: one of 2,4,6,8,10,11,12,13,14,15.
ref_latNoReference latitude for op=shorten/recover. Accepted: a number between -90 and 90.
ref_lonNoReference longitude for op=shorten/recover. Accepted: a number between -180 and 180.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, not open-world), and the description adds material beyond them: a per-call price of $0.05 settled over x402 (USDC on Base), plus the shape of the result ('code length, precision in metres and validity'). It does not address failure modes or invalid-input behavior, so it stops short of a 5.

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 dense sentences, front-loaded with the core encode/decode purpose before the less obvious shorten/recover modes and the pricing tail. Every sentence carries distinct information; nothing is redundant with the schema.

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 compensates by naming the returned fields (code length, precision in metres, validity), and it discloses the payment model. It leaves some ambiguity about which ops return which fields and about invalid-code handling, so it is strong but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it ties length to a 'chosen' precision, and explains that ref_lat/ref_lon act as the reference coordinate for shorten/recover, clarifying the relationship between the coordinate and code params across ops.

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+resource set: encode coordinates to an Open Location Code, decode a code to bounding box and centre, shorten against a reference, and recover a shortened code. This clearly separates it from siblings like geo_geohash and geo_distance without needing their schemas.

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 description explains what each op does and notes shorten/recover reflect 'how plus codes are normally exchanged in text', which implies usage, but it never states when to pick this tool over a sibling (e.g., geohash) or when each op is inappropriate. Usage is implied rather than prescribed.

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.

Resources