Skip to main content
Glama

ScorpTech x402 Tools

Geocode

geocode
Read-onlyIdempotent

Geocode an address or place name to latitude/longitude (US Census Geocoder for US street addresses, Photon/OpenStreetMap worldwide), or reverse-geocode lat/lon to an address (with US county/tract). Read-only. Returns JSON with: mode, query, count, results, warnings, attribution. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/geocode

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoAddress or place for forward geocoding
latNoLatitude for reverse geocoding
lonNoLongitude for reverse geocoding
langNoPhoton result language; default "en"
limitNolimit; default 3
providerNoprovider; default "auto"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds substantial context beyond them: which upstream providers are used and for which regions, the exact response field set, and a per-call price with an x402 payment requirement on Base or Solana. It also offers an equivalent HTTPS endpoint, which is operationally useful information an agent cannot obtain from annotations.

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?

A single dense but well-ordered passage: capability first, provider routing second, return shape third, then cost and transport. No filler sentences, and the most decision-relevant facts (modes, providers, price) are front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six optional parameters, no required fields, and no output schema, the description carries its weight by enumerating the response keys (mode, query, count, results, warnings, attribution) and disclosing the payment model and alternate endpoint. An agent has enough to invoke the tool correctly and to interpret the result envelope without guessing.

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 explains that the provider enum maps to US Census versus Photon/OSM coverage, that reverse geocoding yields US county/tract detail, and it ties q to forward mode and lat/lon to reverse mode. It does not clarify interactions such as what happens when both q and lat/lon are supplied.

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 and covers both directions explicitly: forward geocoding of an address/place to lat/lon and reverse geocoding of lat/lon to an address. It even names the underlying providers that determine scope (Census for US street addresses, Photon/OSM worldwide), so an agent knows exactly what capability this exposes.

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?

The description makes the mode selection clear: supply an address/place for forward geocoding, or lat/lon for reverse geocoding, so an agent can pick the right branch without opening the schema. It stops short of stating explicit exclusions or error conditions, but with no comparable sibling geocoding tool there is little else to route against.

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