Skip to main content
Glama

Lat Long Coordinate Converter API - DD, DMS, DDM, UTM (WGS84), Geohash & distance

lat_long_converter
Read-onlyIdempotent

Convert geographic coordinates between Decimal Degrees (DD), Degrees Minutes Seconds (DMS), Degrees Decimal Minutes (DDM), UTM (WGS84), Geohash, and WKT POINT. Auto-detects input format (DD, DMS, DDM, or UTM). Optional compareTo computes Haversine distance (km/miles/nmi), initial bearing, and midpoint. Single or batch up to 1,000 coordinates. 0 AI, pure stdlib math, < 5 ms. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/lat-long-converter.

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": {
      "input": "40.7128, -74.0060",
      "compareTo": "51.5074, -0.1278"
    },
    "name": "lat_long_converter"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoOptional numeric latitude (-90 to 90), used with lon
lonNoOptional numeric longitude (-180 to 180), used with lat
inputNoCoordinate string in DD, DMS, DDM, or UTM format (provide input, lat+lon, or inputs)
inputsNoOptional batch list of up to 1,000 coordinate strings
compareToNoOptional second coordinate to calculate distance, bearing, and midpoint

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / input / default
      Removed value: -"40.7128, -74.0060"
    • changedInput schema / properties / input / description
      Previous value: -"Coordinate string in DD, DMS, DDM, or UTM format"New value: +"Coordinate string in DD, DMS, DDM, or UTM format (provide input, lat+lon, or inputs)"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, openWorld), but the description adds genuinely useful behavioral facts: free tier of 5 calls/day per IP, auth via X-API-Key or x402 pay-per-call, sub-5ms latency, and no AI dependency. It does not describe error behavior or what the primary conversion response contains, which keeps it below 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.

Conciseness4/5

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

The core capability and auto-detection are front-loaded in the first sentences, and the batch limit and comparison behavior follow logically. It loses some efficiency on promotional pricing content (monthly euro figure, two URLs) that is only partially justified as auth/rate-limit information.

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?

For a five-optional-parameter conversion tool with no output schema, the description covers formats, batching, comparison outputs, limits, and access tiers. The one gap is that it never states what the base conversion returns (e.g., the coordinate rendered in each requested format), leaving the agent to infer output shape.

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 meaning beyond the schema: comparison units (km/miles/nmi) that are not in the schema, auto-detection of the input format, and confirmation that compareTo yields distance plus initial bearing and midpoint. The mutual exclusivity of input vs lat+lon vs inputs is stated only in passing.

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 (Convert) and resource (geographic coordinates) and enumerates the exact formats handled: DD, DMS, DDM, UTM (WGS84), Geohash, WKT POINT. It also names the secondary capability (compareTo distance/bearing/midpoint) and the batch mode, so an agent can distinguish it from siblings like utm_builder that only build one format.

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?

Usage context is implied through details like auto-detection, the 1,000-coordinate batch cap, and the optional compareTo, which tells the agent how the tool behaves. However, there is no explicit when-to-use/when-not guidance and no routing to alternatives such as utm_builder or airports_flight_distance, nor any statement on how input vs lat+lon vs inputs are prioritized.

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