Skip to main content
Glama

TfL — Real-Time London Line Status

tfl.transit.line_status
Read-onlyIdempotent

Get real-time service status for all Transport for London (TfL) lines including Tube, Overground, Elizabeth line, DLR, bus, tram, and cable car. Returns the current operational status (Good Service, Minor Delays, Severe Delays, Part Suspended, etc.) and the reason for any disruption. Filter by specific modes (tube, overground, elizabeth-line, dlr, bus, tram, cable-car, river-bus) and choose to show only disrupted lines. Returns total line count, how many are disrupted, and per-line status with severity score (0=closed, 10=good). Useful for journey planning, commuter alerts, and real-time London transport monitoring. Source: TfL Unified API — api.tfl.gov.uk. No auth required, TfL Open Data CC-BY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modesNoComma-separated transport modes to query (e.g. tube,overground,elizabeth-line,dlr,bus,tram,cable-car). Defaults to tube,overground,elizabeth-line,dlr. Valid modes: tube, overground, elizabeth-line, dlr, bus, tram, cable-car, river-bus.
detailNoInclude additional disruption detail such as affected stops (default false). When true, the response includes affected station lists for each disruption.
include_good_serviceNoWhether to include lines running with Good Service in the results (default true). Set to false to return only lines with disruptions, delays, or suspensions.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false, covering safety. The description adds valuable behavioral context: it explains the output includes operational statuses (Good Service, Minor Delays, etc.), reason for disruption, severity score (0-10), and counts. It also notes no auth is required and cites the data source. This goes beyond the annotations by describing what the response contains and the data licensing, though it does not mention rate limits or pagination, which are minor for a read-only tool.

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?

The description is a single dense paragraph but is well-structured: it starts with the core purpose, then details the output, parameter options, use cases, and source/auth. Every sentence adds useful information without redundancy. It is longer than typical but justified by the breadth of functionality; no fluff or filler. It earns a 4 for being efficiently packed.

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?

The description is complete for an agent to call this tool correctly. It covers what the tool does, what it returns (statuses, reasons, severity scores, counts), the parameters and their defaults, use cases, the data source, and authentication requirements. With an output schema present and 3 optional parameters, the description covers all necessary context, leaving no ambiguity about when or how to invoke it.

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%, with each parameter (modes, detail, include_good_service) fully documented in the schema. The description repeats these meanings and adds default behavior (e.g., default modes) but does not add meaning beyond the schema. Since the schema already documents everything, the description provides reinforcement but no new information, fitting the baseline 3.

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 it retrieves real-time service status for all TfL lines, enumerates the transport modes covered, and distinguishes it from sibling tools like arrivals, bike points, and journey planning by focusing on network-wide line status rather than specific stops, bike availability, or routes. The verb 'Get real-time service status' is specific and the resource (all TfL lines) is explicit.

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?

The description states it is useful for journey planning, commuter alerts, and real-time London transport monitoring, which gives context. It does not explicitly name sibling tools or state when NOT to use it, but the focus on line status versus arrivals or journey planning is clear from the content. The distinction is implicit but adequate for an agent to select it for overall network status queries.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.