Skip to main content
Glama

Bus, tram en metro

ov_vertrek
Read-onlyIdempotent

Vertrektijden van bus, tram, metro en veerboot vanaf een halte in Nederland, met live vertraging en uitval als de vervoerder die doorgeeft. Werkt met de naam van de halte en de plaats, bijvoorbeeld Spui in Den Haag of Leidseplein in Amsterdam, en ook met een adres, straat of postcode, of een plek zonder eigen halte zoals het LUMC of Ahoy: dan komen de drie dichtstbijzijnde haltes mee in 'haltes_in_de_buurt', met de afstand hemelsbreed in meters ('afstand_m'). Bij een treinstation komen alle bus- en tramhaltes rond het station mee, elk met halte en perron. Bij een plek die zijn naam aan één halte geeft, zoals het Erasmus MC, komen ook de haltes eromheen mee, elk met 'afstand_m'. Zonder tijd krijg je de vertrekken vanaf nu; met datum en tijd ook later, volgens de dienstregeling. Met naar krijg je alleen de bussen en trams die daarna bij die halte stoppen, met de aankomsttijd daar ('stopt_bij' en 'aankomst'), ook vanaf een adres, bijvoorbeeld naar het station. Vanaf een gewone halte tellen dan ook de haltes om de hoek mee, met 'afstand_m' en alleen wat je lopend nog haalt. Is naar zo'n plek, of een plek zonder eigen halte, dan tellen ook de haltes op loopafstand ervan: dan staat er hoe lang je daarna nog loopt ('lopen_min') en hoe laat je er bent ('op_bestemming'). Ligt de plek op loopafstand, dan staat in 'lopen' hoe lang het lopen is en vallen ritten weg die er later zijn dan lopend. Een negatieve vertraging betekent te vroeg. 'andere_haltes' noemt haltes met een andere naam die ook gevonden zijn. Bij een staking of een andere grote verstoring van bus, tram of metro staat er een bericht van NS in 'let_op', want de dienstregeling toont dan nog alle ritten. Treinen staan in Treinvertrek.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "halte": "<halte>"
    },
    "name": "ov_vertrek"
  }
}

Input Schema

NameRequiredDescriptionDefault
lijnNoAlleen deze lijn of soort, bijvoorbeeld 2, tram 2, 400, E of metro
naarNoAlleen vertrekken die daarna bij deze halte of plek stoppen, bijvoorbeeld Leiden Centraal, Kurhaus of Erasmus MC
tijdNoVanaf welke tijd, als UU:MM. Leeg = nu
datumNoDatum als JJJJ-MM-DD. Leeg = vandaag
halteYesNaam van de halte, bijvoorbeeld Spui, Leidseplein of Leiden Centraal. Mag ook een adres, straat, postcode of plek zijn, bijvoorbeeld Laan van Meerdervoort 100 of LUMC
aantalNoAantal vertrekken
plaatsNoPlaats of wijk van de halte of het adres, bijvoorbeeld Den Haag of Scheveningen

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

It adds substantial behavior beyond the read-only, open-world annotations: stop names resolve to addresses, streets, postcodes or named places; nearby stops appear in 'haltes_in_de_buurt' with straight-line distance; walking time and arrival appear for destinations within walking distance; a negative delay means early. It also warns that during strikes a message appears in 'let_op'. The only gap is that it never describes paging through more than 'aantal' departures.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one long, dense Dutch paragraph of roughly 200 words with no separation between the stop-resolution, time-filter and 'naar' behaviors, so the reader must parse a wall of text. The purpose is front-loaded and the sentences are nearly all informative, but 'afstand_m' is restated three times and the walking-distance rules are tangled.

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 seven-parameter, open-world lookup tool, it covers what an agent needs: how ambiguous names resolve, which extra stops are returned and how far away they are, what a destination filter changes, how delays and cancellations are signaled, and which sibling covers trains. The output schema exists, and key return fields are still explained in context.

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 all seven parameters are already documented. The description still adds meaning: 'halte' accepts addresses, postcodes or named places; 'naar' filters to trips that stop at that stop and returns 'stopt_bij' and 'aankomst'; and describing what a date/time does changes how 'tijd' and 'datum' should be filled. This is above the baseline for full coverage.

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 opening sentence states a specific verb and resource: departure times for bus, tram, metro and ferry from a stop in the Netherlands, including live delay and cancellations. It explicitly routes trains elsewhere ('Treinen staan in Treinvertrek'), so an agent can separate it from the sibling train tools 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 Guidelines4/5

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

The description gives clear conditions for the main variants: no time means departures from now, with date and time means later per the timetable, and 'naar' restricts to trips that stop at a destination. It also names the alternative for trains. It does not mention journey-planning siblings such as reis_plannen, so the exclusions are not exhaustive.

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.