Skip to main content
Glama

Travel times between places

travel_times
Read-onlyIdempotent

Calculate road distances and driving or walking times between multiple origins and destinations in India. Compare straight-line km, road km, free-flow and traffic-adjusted minutes for trip planning.

Instructions

Computes road distance and travel time from each origin to each destination in India (a matrix), by car or on foot. Each place is lat+lng, a railway station code, an airport IATA code or a place name. Returns straight-line km, road km, free-flow minutes and traffic-adjusted minutes per pair, with a warning when a point is far from any road. Does not cover public transport or flights.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNodrive (car/taxi, with traffic allowance) or walk.drive
originsYesStarting places.
destinationsYesDestination places.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
legsYes
notesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered. The description adds real operational context beyond them: the geography restriction (India only), the mode-dependent behaviour (traffic allowance for drive), and a warning when a point is far from any road. That warning behaviour is not derivable from the schema or annotations.

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, front-loaded with the core capability, then the input formats, outputs, and scope exclusions. No filler; every clause carries information an agent needs.

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 an output schema present, the description need not enumerate return fields, yet it still summarises the four returned metrics and the road-proximity warning. Combined with the India-only scope and mode options, an agent has everything needed to call this correctly.

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 each field (mode enum, lat/lng bounds, iata/station_code patterns, place resolution, per-list max items) is fully documented in the schema itself. The description restates the input formats ('lat+lng, a railway station code, an airport IATA code or a place name') but adds no syntax or constraint detail beyond what is already given. Baseline 3 applies.

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 and resource (computes road distance and travel time) plus the scope (matrix from each origin to each destination in India) and mode (by car or on foot). An agent can immediately tell this is an origin-destination routing tool, distinct from the hotel-focused siblings and from resolve_place, which only geocodes single points.

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?

The description supplies a when-not clause ('Does not cover public transport or flights'), which usefully prevents misuse, but gives no explicit when-to-use trigger and does not name an alternative such as resolve_place for single-point geocoding. Usage is implied (trip planning / matrix comparisons) rather than stated.

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