Skip to main content
Glama

Alomo: Lookups

Distance and bearing between two places

distance_bearing
Read-onlyIdempotent

Great-circle distance between two points given as coordinates ('lat,lon') or airport codes (IATA/ICAO), in kilometres, miles and nautical miles, with the initial and final compass bearing, the midpoint, and a rough flight time at 800 km/h. Straight-line distance, not road or flight-route distance.

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_bearing"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd: 'lat,lon' or an airport code.
fromYesStart: 'lat,lon' (e.g. '51.5074,-0.1278') or an airport code (e.g. 'LHR').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description adds the substantive behavior: output units (km, miles, nm), the 800 km/h flight-time assumption, and the straight-line caveat. It does not say what happens when an airport code is unresolvable or how ambiguous codes are handled, which is the main remaining behavioral gap.

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?

Two sentences, no filler: the first front-loads the computation and its outputs, the second front-loads the one scope caveat that matters. Nothing is repeated from the schema verbatim.

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 no output schema, the description carries the return-value burden and does so: units, bearings, midpoint and estimated flight time are all listed. For a two-parameter, annotated, read-only computation tool, an agent has everything needed to call it and interpret results.

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% and both parameters already document 'lat,lon' or airport code plus an example, so the description merely restates the accepted input forms. Baseline 3 is appropriate since the schema carries the parameter meaning.

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?

Opens with a specific verb+resource ('Great-circle distance between two points') and enumerates the derived outputs (bearings, midpoint, flight time). It is unmistakable against siblings like airport_lookup, which resolves codes rather than computing geometry.

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 closing sentence 'Straight-line distance, not road or flight-route distance' tells the agent clearly what class of question this answers and what it must not be used for. It stops short of naming an alternative tool to use instead for routed distances, so no explicit sibling routing is provided.

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