Skip to main content
Glama

disruptions

Read-only

Retrieve current and upcoming SNCF service alerts for a station or line, or network-wide when no IDs are provided. Returns an empty list if none exist.

Instructions

Current and upcoming disruptions for a station (id from find_station) or a line id (station_id wins when both are given); without arguments, network-wide. Built from the SNCF GTFS-RT service alerts feed (transport.data.gouv.fr, open licence), with the SNCF API as fallback when the feed has nothing. Empty list when there are none; if the feed is down and the API has nothing, a single item with a warning.

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": "disruptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
line_idNo
station_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond that by disclosing the data provenance (SNCF GTFS-RT alerts feed), the fallback to the SNCF API, and the degraded-mode contract of returning a single warning item. This is exactly the operational context an agent needs to interpret thin or empty results.

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-loaded with the purpose and scoping modes, then the provenance and failure-mode details. The semicolon-chained single paragraph is dense but every clause carries information; minor tightening is possible.

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?

For a two-parameter read tool with an output schema, the description covers purpose, ID sourcing, precedence, defaults, fallback source, and empty/degraded return semantics. Nothing an agent needs to call it correctly is missing.

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 coverage is 0%, so the description must carry the parameter burden, and it does: it explains what each ID refers to, where to obtain a station ID (find_station), and the precedence rule when both are supplied. It stops short of describing the ID format itself.

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 ('Current and upcoming disruptions') and enumerates the three scoping modes: station, line, or network-wide. The sibling find_station is referenced for ID acquisition, so an agent can distinguish this from departures/journeys without opening the 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?

Gives clear conditions: use station_id from find_station, line_id for a line, no arguments for network-wide, and resolves the conflict case ('station_id wins when both are given'). It lacks an explicit when-not-to-use statement, but the selection context is unambiguous.

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

Deploy Server

Other Tools