Skip to main content
Glama

olamap_distance_matrix

Calculate travel distance and time matrices between multiple origins and destinations across driving, walking, or cycling modes to compare routes and plan multi-stop trips.

Instructions

Calculate distance and time matrix between multiple points

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": {
      "origins": "<origins>",
      "destinations": "<destinations>"
    },
    "name": "olamap_distance_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoTravel mode (driving, walking, cycling)driving
basicNoUse basic version without traffic data
unitsNoUnit system (metric, imperial)metric
originsYesArray of origin coordinates as ["lat,lng", ...]
destinationsYesArray of destination coordinates as ["lat,lng", ...]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: whether traffic is included by default, how many origins/destinations are allowed, whether the call is billable or rate-limited, and what the response shape looks like are all unstated. The schema's 'basic' flag implies traffic handling exists, but the description never discusses it.

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?

One front-loaded sentence with no filler or redundancy. It is efficiently written, though its brevity borders on under-specification rather than tightness.

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

Completeness2/5

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

For a 5-parameter tool with no annotations and no output schema, the description should explain the matrix result structure (N×M pairs), how origins and destinations interact, and any practical limits. None of that is present, leaving real gaps an agent would need before invoking it confidently.

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 every parameter (mode, basic, units, origins, destinations) is already documented, and the baseline of 3 applies. The description adds no syntax, ordering, or size-limit detail beyond what the schema states.

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?

States a specific verb and resource: 'Calculate distance and time matrix between multiple points.' An agent immediately knows it produces a matrix of distances and durations, but the description never distinguishes it from siblings such as olamap_get_directions or olamap_optimize_route, which touch the same origin/destination domain.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'between multiple points' hints that this is for many-to-many computations rather than a single route, but there is no explicit when-to-use guidance, no mention of when to prefer directions or route-optimization tools, and no prerequisites or limits stated. Usage must be inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.