Skip to main content
Glama

geo_zip_batch

Read-only

Postal code lookup (batch) — Look up to 30 postal codes in one call: place, state and coordinates for each, plus the states covered, centroid, bounding box, each code's miles from the centroid and the farthest-apart pair. zips = comma-separated codes. Optional country = ISO-2 code (default US). Price: $0.008 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "zips": "<zips>"
    },
    "name": "geo_zip_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipsYese.g. 37201,10001,94105

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so safety is covered. The description adds genuinely useful context beyond that—the x402 pricing model at $0.008 USDC per call and the exact payload composition (states covered, centroid, bounding box, per-code distances, farthest pair)—but says nothing about rate limits, error behavior for invalid codes, or overhead for fewer than 30 codes. Solid additions, not exhaustive.

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?

One dense but well-ordered sentence plus short format notes: purpose and limit first, then return payload, then input format, then price. Every clause carries information, though the long mid-sentence enumeration makes it slightly hard to scan.

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 correctly takes on the burden of enumerating return fields, and it also discloses cost and the country default. The only real gaps are the undocumented behavior of the phantom 'country' parameter and what happens with invalid or non-US codes.

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%, so 'zips' is already documented; the description only adds that values are comma-separated, which the schema's example implies. It also references an optional 'country' (ISO-2, default US) parameter that does not appear in the input schema at all, which adds information but creates an inconsistency an agent may trip over.

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 ('Postal code lookup (batch)') plus a concrete bound ('up to 30 postal codes in one call') and enumerates exactly what is returned, which lets an agent distinguish it from the singular geo_zip sibling 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 Guidelines4/5

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

Clear usage context: batch of up to 30 comma-separated codes, optional country defaults to US. No explicit exclusion or named alternative (e.g., 'use geo_zip for a single code'), so it stops short of full when/when-not guidance.

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