Skip to main content
Glama

MapIron Maps (formerly PinSharing)

Travel times and distances between many US points

distance_matrix
Read-onlyIdempotent

Travel time (seconds) and road distance (metres) from each source to each target in the United States: up to 50 sources and 50 targets, 2,500 pairs at most. Omit targets for every source to every other. Use it to pick the nearest store or driver, or to feed a route optimiser. null means no route. Free-flow times, no live traffic. Counts 1 address lookup per pair.

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": {
      "sources": "<sources>"
    },
    "name": "distance_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
avoidNoKinds of road to avoid where possible
profileNoHow to travel: car, truck (keeps to roads trucks may use), bike or footcar
sourcesYesOrigins, each [lat, lon]
targetsNoDestinations, each [lat, lon] (default: the sources)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description adds real value beyond them: free-flow times with no live traffic, null meaning no route, and a cost signal of one address lookup per pair. Remaining gaps, such as accuracy expectations or behavior when a point is outside the US, keep it from 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?

Four short sentences, front-loaded with the core operation, limits, and units, followed by use cases, null semantics, traffic caveat, and cost. Every sentence carries information, though the phrasing 'Omit targets for every source to every other' is telegraphic and slightly harder to parse than the surrounding text.

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 properly explains return values (seconds, metres, null for unroutable), plus limits, defaults, static-traffic caveat, and quota cost. What is missing is minor: how pairs are ordered or returned in the response, and timezone/edge-case handling for the US-only scope.

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 schema already explains sources, targets, profile, and avoid. The description reinforces the targets default ('omit targets ... every source to every other') and states output units, but says nothing about profile or avoid semantics. Baseline 3 is appropriate where the schema does the heavy lifting.

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?

The description names the exact verb and resource: travel time (seconds) and road distance (metres) for each source-target pair. The many-to-many shape ('each source to each target', up to 2,500 pairs) and the default-source behavior carve out a niche that is distinct from a single-route sibling like directions, so an agent can select it without opening the 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?

It gives concrete when-to-use guidance: picking the nearest store or driver, or feeding a route optimiser. It also explains the important usage case of omitting targets to get all-pairs among sources. There is no explicit when-not or named alternative (e.g., single-route directions for one origin/destination), which keeps it short of a 5.

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.