Skip to main content
Glama

Live departures

get_departures
Read-only

Fetch upcoming live departures for a London stop or station using its ID, soonest first, with optional filters by line or destination.

Instructions

Next live departures at a London stop or station, soonest first: pass the id from find_places, and narrow with line (a line id such as northern or 133) or towards (part of a destination).

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": {
      "stop": "<stop>"
    },
    "name": "get_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineNoonly this line id, e.g. northern, elizabeth, 133
stopYesstop or station id from find_places
limitNomost departures to return, 1 to 20 (default 8)
towardsNoonly departures whose destination contains this text

Output Schema

NameRequiredDescriptionDefault
noteNowhy there are no departures
confidenceYes
departuresYes
attributionYes
retrieved_atYes
valid_for_minutesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description still adds useful behavioral context — the data is live/real-time, results are ordered soonest first, and stop ids must come from find_places — which an agent cannot infer from the annotations alone.

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?

A single sentence with the purpose front-loaded, then the id prerequisite, then the narrowing options. No filler and nothing repeated from the schema.

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

Completeness4/5

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

With an output schema present, return values needn't be explained, and the description covers the prerequisite, ordering and filtering. It is essentially complete for this complexity; only a note on the id source format or limits of the live feed would add anything.

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 coverage is 100%, so all four parameters already carry descriptions and examples. The description only restates stop, line and towards at a high level and adds no format or syntax detail beyond the schema, so the 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 ('Next live departures at a London stop or station'), plus the ordering guarantee ('soonest first') and the geographic scope (London). Combined with the sibling names, an agent can distinguish this from get_line_status or plan_journey without opening a 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?

Explicitly tells the agent to obtain the stop id from find_places, and explains that results can be narrowed by line or towards. Clear context for use, though it doesn't state when to prefer a sibling (e.g. get_line_status or plan_journey) instead.

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