Skip to main content
Glama

get_cancellations

Retrieve published operator cancellations as structured JSON, filtered by operator NOC code or line number for exact-match results.

Instructions

Get published operator cancellations (SIRI-SX /cancellations) as structured JSON. Filtering is client-side and exact-match.

Parameters: operator: Optional operator NOC code (exact match). line: Optional line/route number (exact match).

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

Input Schema

NameRequiredDescriptionDefault
lineNo
operatorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A3.7/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; it usefully discloses that filtering happens client-side and is exact-match, implying the full dataset is fetched and only exact values narrow it. It says nothing about data freshness, coverage window, volume/latency, or what an unfiltered call returns, which are the remaining traits an agent would want for a live-feed read.

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?

The opening sentence states the resource and return type, followed by a compact parameter block; no sentence is redundant and the key constraint (client-side exact match) is front-loaded. Structure makes it scannable in one pass.

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 shape need not be described, and both parameters are explained. The remaining gap is the no-filter case — whether omitting both parameters returns all published cancellations — plus any statement of feed coverage or freshness, which matters for a real-time SIRI-SX source.

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 description coverage is 0% — the schema only supplies titles and null defaults — so the description must compensate, and it does: it explains that 'operator' is a NOC code and 'line' is a route number, and that both are optional and exact-match. It stops short of giving an example NOC code format or saying whether line values are numeric strings.

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?

The description gives a specific verb and resource ('Get published operator cancellations') and names the underlying SIRI-SX endpoint, so the agent knows exactly what data comes back. It does not explicitly contrast itself with the adjacent disruption/GTFS-RT siblings, so differentiation is only partial.

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?

It states that filtering is client-side and exact-match, which implicitly tells the agent this tool is for narrow, exact lookups rather than fuzzy searching. However, it never says when to prefer this over get_disruptions or the SIRI-SX disruptions feed, so the choice between siblings is left to inference.

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