Skip to main content
Glama

Agent Toolkit (all-in-one)

Distance and direction between two places given as coordinates, DIGIPIN, Plus Code or Indian PIN code

distance_between

[Location Toolkit] Great-circle distance (km and miles) and compass bearing between two points. Each point can be {lat,lng}, "13.08,80.27", a DIGIPIN, a Plus Code or a 6-digit Indian PIN code. Price 0.001 USDC per call; first 3 calls per day free.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "distance_between"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd point, same formats
fromYesStart point: "lat,lng", DIGIPIN, Plus Code or Indian PIN (or an object {lat,lng})
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does disclose important context: exact pricing of 0.001 USDC per call and the first 3 calls per day being free, which goes beyond the schema's brief payment note. It still omits explicit read-only/non-destructive characterization and failure behavior, but the accepted formats and cost model are clearly stated.

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?

The description is two compact sentences that front-load the operation and accepted formats, then append pricing and free-call context. Every sentence contributes useful information without repetition or fluff.

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 simple three-parameter read-only computation, the description covers the core operation, accepted input formats, output quantities, and pricing/free quota. It could be stronger by clarifying exact return structure or error behavior, especially since no output schema is provided, but the essential context is present.

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 100%, so the parameters are already documented. The description reinforces that both points accept {lat,lng}, coordinate strings, DIGIPIN, Plus Code, or Indian PIN code, and implies the 'to' field accepts the same formats, but it adds little syntax or meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific computation, great-circle distance in km and miles plus compass bearing, and the resource is two geographic points in multiple accepted formats. It is clear what the tool does, although it does not explicitly distinguish itself from siblings such as location_code or postal_code_check.

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 is implied by 'between two points' and the accepted input formats, but there is no explicit when-to-use or when-not-to-use guidance. It also does not name alternatives for cases where the agent needs coding, lookup, or validation instead of distance calculation.

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.