Skip to main content
Glama

Live train status

estado_comboio
Read-only

Get live status for a Portuguese train by number: delays, last station passed, and all stops with scheduled/expected times and platforms for a departure date.

Instructions

Live status of a train by number: delay, last station passed, and every stop with scheduled/expected times and platform. The date is the departure date at the train's origin (default today; just after midnight it also checks yesterday's run).

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": {
      "train_number": "<train_number>"
    },
    "name": "estado_comboio"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDeparture date at origin, YYYY-MM-DD
train_numberYesTrain number, e.g. 521

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: results are live (consistent with non-idempotent), and the default-date/midnight-fallback logic determines which run is fetched. It does not explain failure behavior for unknown train numbers.

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?

Two sentences, zero filler. The return contents come first and the date-semantics caveat second, so the reader gets purpose before the edge case.

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?

With no output schema, the description carries the return-shape burden and does so by listing delay, last passed station, and per-stop times and platform. Both parameters are covered. The only gap is what happens when the train number is invalid or the run is not found.

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 would be 3. The description earns above baseline by clarifying that date means the departure date at the train's origin and describing the default-today plus post-midnight yesterday-check semantics, which the schema field 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?

The description names the resource (live status of a train, looked up by number) and enumerates the payload: delay, last station passed, and every stop with scheduled/expected times and platform. The 'by train number' scoping implicitly separates it from the station-board siblings (partidas_chegadas, info_estacao, horarios) without needing to name them.

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?

It gives a clear condition for the date argument: the date is the departure date at the origin, defaults to today, and just after midnight it also checks yesterday's run. That resolves the main ambiguity in choosing a value. It stops short of explicit when-not guidance or naming an alternative tool for station-level queries.

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