Skip to main content
Glama

get_disruptions

Retrieve active SIRI-SX bus disruption messages as structured JSON, filtered by operator NOC code, line number, or NaPTAN stop ref to check service issues affecting a route or stop.

Instructions

Get active SIRI-SX disruption messages as structured JSON, optionally filtered (client-side — the endpoint itself accepts no query parameters).

Parameters: operator: Optional operator NOC code. Matched by EXACT membership of the message's operator refs — not a substring, so "OPX" matches a message carrying OPX and nothing else does. line: Optional line/route number, matched by exact membership of the message's line refs. stop: Optional NaPTAN stop ref, matched by exact membership of the message's stop point refs.

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_disruptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineNo
stopNo
operatorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose one important trait: the endpoint accepts no query parameters, so all filtering happens client-side. It stops short of covering result volume, freshness of 'active' messages, error behavior, or any rate/auth constraints.

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?

Front-loads the purpose and the client-side filtering caveat before a clearly delimited parameter block. The per-parameter explanations are somewhat wordy but each clarifies matching behavior rather than padding.

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?

An output schema exists, so return values need not be explained, and all three optional parameters are fully specified in prose. What remains thin is the operational picture — result size and what counts as 'active' — but the definition is sufficient to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does: each parameter is given a domain meaning (operator NOC code, line/route number, NaPTAN stop ref) and precise matching semantics — exact membership of message refs, explicitly not substring matching, with a worked OPX example.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('Get active SIRI-SX disruption messages as structured JSON') plus the filtering capability, so the agent knows exactly what is returned. It does not, however, distinguish itself from close siblings such as get_cancellations or the raw SIRI_SX_Disruptions feed, leaving that boundary implicit.

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

Usage Guidelines3/5

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

The note that filtering is client-side is genuinely useful usage context, implying this tool fetches the whole active set and narrows it locally. There is no explicit when-to-use / when-not-to-use guidance relative to the cancellations or raw feed siblings.

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