Skip to main content
Glama

travel_time

Get travel time and distance between two points. Traffic-aware for driving, step-by-step for transit; specify departure or arrival time to know when to leave.

Instructions

Route duration and distance between two points — traffic-aware for driving, step-by-step for transit. THE tool for "when do I need to leave?".

origin/destination: address, 'lat,lng', or 'place_id:'. mode: drive (default) / walk / bicycle / transit / two_wheeler. departure_time: RFC3339 (e.g. '2026-07-05T08:30:00+10:00'), must be now-or-future; empty means now. For driving, the result includes the delay vs the no-traffic baseline. arrival_time: RFC3339 "be there by" time — transit mode only (the Routes API restriction). The transit answer lists each leg: line, stops, and clock times, so "leave by" falls straight out. include_tolls: for drive/two_wheeler, adds an estimated toll cost (requests an extra computation — off by default).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNodrive
originYes
avoid_tollsNo
destinationYes
arrival_timeNo
include_tollsNo
departure_timeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden. It discloses traffic-aware delay vs baseline, transit leg details, extra computation for tolls, and API restrictions (arrival_time only for transit). It does not mention auth, rate limits, or error handling, but for a routing API this is substantial transparency.

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 organized with clear line breaks separating the core purpose from parameter details. Every sentence adds value, using concrete examples (e.g., RFC3339 format) without excessive verbosity. It front-loads the purpose and then details each parameter efficiently.

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?

Given the tool has 7 parameters and an output schema exists, the description covers the essential usage context, parameter semantics for most parameters, and special behavioral traits (traffic, transit legs, toll computation). The missing avoid_tolls is minor, and overall the description is complete enough for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains origin/destination formats, mode values and defaults, RFC3339 time formats, the departure/arrival semantics, and include_tolls behavior. However, it omits the avoid_tolls parameter entirely, leaving that one parameter undocumented despite the schema having no description either.

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 clearly states the tool computes route duration and distance between two points, with specific behavioral modes (traffic-aware driving, step-by-step transit). It positions itself as 'THE tool for when do I need to leave?', distinguishing itself from sibling tools like geocode or place_search which handle locations, not routing.

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?

Provides clear context on when to use it (routing, ETAs) and mode-specific constraints (e.g., arrival_time is transit-only). It does not explicitly name alternatives or state when not to use it, but the context is strong enough for an agent to select it appropriately.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/snickery/maps-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server