Skip to main content
Glama

Line and network status

get_line_status
Read-only

Check London line status and severity now or for future dates, including planned works and network-wide notices such as strikes, to see which services are disrupted.

Instructions

Status of London lines with our severity, now or for later dates (published works), plus network-wide notices such as strikes. affected gives only the two ends of a section: every station between them is affected too, so to know whether one trip is hit, call plan_journey for it. A line under status_unknown_lines is not known to be running well.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_line_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoend of that window; default the end of the from day
fromNodate or ISO 8601 time to look at published works from; default now
linesNoline ids, e.g. victoria, elizabeth, windrush, 133; default every rail line
modesNotube, dlr, elizabeth-line, overground, tram, bus, river-bus, cable-car, national-rail; with from or to, bus and national-rail need line ids in lines
only_disruptedNoleave out lines with a good service

Output Schema

NameRequiredDescriptionDefault
noteNo
linesYes
noticesYes
confidenceYes
attributionYes
retrieved_atYes
valid_for_minutesYes
good_lines_omittedNolines with a good service that did not fit
notices_unavailableNonetwork-wide notices could not be read
more_disrupted_linesNodisrupted lines that did not fit: ask for them by id
status_unknown_linesNolines whose status cannot be read: not a good service

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds genuinely non-obvious semantics — that affected truncates a section to its endpoints, and that status_unknown_lines means the line is not known to be running well. The time-varying nature of the results (now vs later published works) is also consistent with idempotentHint=false.

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?

Three tight sentences, front-loaded with the scope statement, then the affected caveat, then the status_unknown_lines caveat. Minor awkwardness in the parenthetical "(published works)" but no wasted wording.

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 need not be explained, and annotations cover safety; the description still adds the two interpretive caveats an agent would otherwise get wrong. It stops short of explaining how severity values or mode/line interaction behave, but the remaining gaps are covered by the rich schema.

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 the schema already documents from, to, lines, modes and only_disrupted in detail. The description only hints at the from/to window via "now or for later dates (published works)" and adds no syntax or default behavior beyond what the schema states, so the baseline of 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?

The description names a specific verb and resource ("status of London lines") and enumerates scope precisely: current status, future published works, and network-wide notices such as strikes. It is clearly distinguishable from plan_journey, which it explicitly routes trip-level questions to.

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 explicit routing guidance: for whether a single trip is affected, call plan_journey instead, because affected only reports the two ends of a section. That is a concrete when-to-use-an-alternative rule. It does not address when to prefer get_departures or check_route, so it falls short of full coverage.

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