Skip to main content
Glama

Plan a journey

plan_journey
Read-only

Plan London journeys between two places and compare route options by time, changes, and cost, including known delays, closures, diversions, and access issues on each leg.

Instructions

Route options between two London places with every known issue on each leg, now or for a later time. from and to take a station name, postcode, address or lat,lon directly. Options span time, changes and cost: fastest, fewest changes and cheapest are labelled; ask preferences optimise cheapest or fewest_changes when the traveller wants those. Each leg already carries its closures, delays, diversions in that direction, lift faults, road works and crowding, so there is no need to check its lines or stations separately; a leg with no issues has none known, unless it is status_unknown or unavailable_feeds names a feed that could not be read. Read an issue's text: it may apply only at some hours or stops. Times are ISO 8601; without an offset they are London time. Give arrive_by for a calendar event (its start minus your buffer). Send only places and times, never event titles, attendees or notes.

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

Input Schema

NameRequiredDescriptionDefault
toYesas from; for a calendar event, the venue
viaNooptional place to pass through, as from
fromYesstation or stop id or name, UK postcode, street address or lat,lon (preferred when known)
detailNoleave unset (concise) unless the user asks for every stop; detailed is much longer
arrive_byNoISO 8601; with depart_at too, both bound the trip
depart_atNoISO 8601, London time without an offset; default now
max_optionsNooptions to return, 1 to 6 (default 4); the fastest, fewest-changes and cheapest bests can exceed it
preferencesNothe traveller's preferences; nothing is remembered between calls

Output Schema

NameRequiredDescriptionDefault
hintNo
notesNo
noticeNo
appliedYes
optionsYes
confidenceYes
attributionYes
retrieved_atYes
assumed_placesYes
unavailable_feedsNofeeds that could not be read: missing issues from them does not mean there are none
valid_for_minutesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it explains the semantics of results: a leg with no issues means none known, except when status_unknown appears or unavailable_feeds names an unreadable feed, and issue text may apply only at certain hours or stops. It also discloses time-zone handling and an explicit privacy constraint (send only places and times, never event titles, attendees or notes), which annotations cannot convey.

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?

Purpose and the issue-coverage guarantee are front-loaded, and nearly every clause carries operational information. It is a dense single block with some schema-restating ('from and to take a station name, postcode, address or lat,lon directly') and long compound sentences that make it slightly harder to scan than it needs to be.

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?

For an eight-parameter journey planner with an output schema, the description covers the things structured fields cannot: what absence of issues means, feed-failure signals, time semantics, preference selection and a data-privacy boundary. Nothing an agent needs in order to call it correctly appears to be missing.

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 coverage is 100%, so the baseline is 3; the description still adds value by explaining that arrive_by should be derived from an event start minus the agent's buffer, and that fastest/fewest-changes/cheapest bests can exceed max_options. The rest of the parameter discussion (from/to accepting names, postcodes, addresses, lat,lon; ISO 8601 London time) largely restates 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?

Opens with a specific verb and resource ('Route options between two London places') plus scope ('every known issue on each leg, now or for a later time'). It also distinguishes itself from status-checking siblings by stating each leg already carries closures, delays, diversions, lift faults and road works, so the agent can tell it apart from get_line_status or check_route.

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

Usage Guidelines5/5

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

Gives explicit when-to guidance: use arrive_by for a calendar event (start minus buffer), set optimise to cheapest or fewest_changes when the traveller wants those, and leave detail unset unless every stop is requested. It also states an exclusion — no need to check lines or stations separately — which routes the agent away from sibling calls.

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