Skip to main content
Glama

Storingen en werkzaamheden

trein_storingen
Read-onlyIdempotent

Storingen en werkzaamheden op het spoor, van NS: wat er aan de hand is, waar, van wanneer tot wanneer, of er bussen rijden en het reisadvies van NS. Zonder datum krijg je de storingen van nu, de werkzaamheden van nu en die van de komende drie dagen. Met datum (en tot) de werkzaamheden in die periode, tot 31 dagen tegelijk. Met een station alleen wat op het spoor langs dat station speelt, en waar de vervangende bus daar vertrekt. Landelijke berichten, zoals een staking, staan in 'landelijke_berichten'. Voor een reis van A naar B op een bepaald moment is er ook Treinreis plannen.

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

Input Schema

NameRequiredDescriptionDefault
totNoLaatste dag als JJJJ-MM-DD, voor een periode zoals een weekend. Leeg = alleen de datum
datumNoEerste dag als JJJJ-MM-DD. Leeg = nu en de komende dagen
stationNoStationsnaam, bijvoorbeeld Leiden Centraal of Utrecht. Leeg = heel Nederland

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the burden is lower. The description adds genuinely useful behavior beyond them: the implicit default time window (now + three days), a hard 31-day span limit, station-scoped results including bus departure points, and the fact that national messages are excluded. It does not discuss freshness/lag of the disruption feed, which would have earned a 5.

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 purpose, then the three usage modes in a sensible order, then the two referrals. It is dense and single-paragraph, with some run-on Dutch sentences ('Met datum (en tot) de werkzaamheden in die periode, tot 31 dagen tegelijk'), but almost no sentence is redundant.

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?

All three optional parameters are covered by both schema and prose, an output schema exists so return shape needn't be described, and the annotations carry the safety profile. What is missing is minor: no statement about update frequency or whether disruption data is live, and no hint about what an empty result means.

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 100% so the baseline is 3, but the description adds real meaning: 'datum' is the first day and 'tot' the last day of a period (e.g. a weekend), 'met datum alleen' vs 'met datum en tot' behave differently, and 'station' narrows to what happens along that station and where the replacement bus leaves. That's operational semantics the schema does not state.

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?

Opens with a specific verb+resource combination ('Storingen en werkzaamheden op het spoor, van NS') and enumerates what is returned: what is wrong, where, from/to when, whether buses run, and NS travel advice. It also names the exact field ('landelijke_berichten') and the sibling tool ('Treinreis plannen') that cover adjacent needs, so an agent can separate it from reisadvies/reis_plannen without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit conditional routing: without a date you get current disruptions plus works for today and the next three days; with datum (and tot) you get works for that period up to 31 days; with station only you get what plays along that station plus where the replacement bus departs. It also routes two out-of-scope cases away ('landelijke_berichten' for national notices, 'Treinreis plannen' for A-to-B trips).

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.