Skip to main content
Glama

Travel time by car (Pyfio Router)

travel_time
Read-only

Estimate car driving time and distance between two places, including cautious planning time and optional arrive-by departure calculation.

Instructions

Driving time by car from A to B without any account: both ends are geocoded (Photon and Nominatim on OpenStreetMap, their agreement gives a confidence), two routers are asked (OSRM and Valhalla), and a surcharge by weekday and hour is added (calibrated on 23 reference values of a commercial maps service, mean error 2.1 minutes; a model, not live traffic). Returns minutes_typical, minutes_cautious (use this to plan), distance_km, the geocoding hit of each end with its confidence, and a route link. With arrive_by the departure is computed backwards. Times are Berlin local time. Public services are used politely (1 request per second, own User-Agent, cached). No start place is assumed: from is required.

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": "travel_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination: address, place name or "lat,lon"
fromYesStart: address, place name or "lat,lon"
arrive_byNoLatest arrival instead of depart_at; the departure is computed with the cautious time
depart_atNoDeparture (Berlin time): "07:45", "tue 07:45", "tomorrow 17:00", "2026-10-20 07:45"; default now

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so the description is not carrying the safety burden alone. It still adds genuinely useful behavior beyond the annotations: two geocoders with agreement-based confidence, two routers, a weekday/hour surcharge calibrated on 23 reference values with 2.1 min mean error, an explicit 'a model, not live traffic' caveat, Berlin local time, and a politeness policy of 1 request/second with caching and its own User-Agent. What holds it to a 3 rather than a 5 is that it never states what happens on geocoding failure (e.g. ambiguous or unmatched place names) or what an error response looks like, which matters for an open-world tool dependent on third-party services.

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?

It is front-loaded with the core purpose and the planning advice, and every clause carries information. It is dense to the point of being a run-on, packing geocoding, routing, calibration, timezone, and rate-limit details into one paragraph; splitting it into purpose, behavior, and output sections would improve scanability.

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 takes on the job of describing returns and does so explicitly: minutes_typical, minutes_cautious, distance_km, per-end geocoding hits with confidence, and a route link. Combined with the rate-limit, caching, timezone, and model-accuracy disclosures, an agent has everything needed to call it and interpret the result.

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 baseline is 3 and the description largely restates what the schema already documents, including the arrive_by/depart_at relationship, the cautious-time computation, and Berlin local time as the default. It reinforces the required 'from' and the accepted 'address, place name or lat,lon' formats but adds no new syntax or constraint beyond the schema.

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 opens with a specific verb and resource ('Driving time by car from A to B') and immediately scopes it ('without any account'), which cleanly separates it from sibling tools like web_search, weather, or read_page. An agent can identify the operation 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 usage guidance: 'use this to plan' points at minutes_cautious, and it explains that arrive_by replaces depart_at with a backwards-computed departure. It also states 'No start place is assumed: from is required', preventing a common misuse. However, it never names an alternative tool or a when-not-to-use condition, so it stops short of full routing guidance.

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

Deploy Server

Other Tools