Skip to main content
Glama

Lviv Public Transport

Get Route Realtime

get_route_realtime
Read-onlyIdempotent

Returns every vehicle currently running on a route: position, the destination it is heading to, and its next stop with estimated arrival. headways sums up each direction: how many vehicles run, the live gaps between consecutive vehicles in minutes (front to back), and how often the timetable says it should run right now. Use when the user asks "where is my tram/bus right now?", how many vehicles are running, how far the next one is, or how often a route runs. Pass direction (0 or 1, as in get_route_static's stops) to get only one way. Prefer get_stop_realtime when the user is at a stop and wants arrival times there. Requires a route short name (e.g. "T30", "32A") or numeric external ID.

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": {
      "route_name": "<route_name>"
    },
    "name": "get_route_realtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
directionNoOnly vehicles heading this way: 0 or 1, the index into get_route_static's `stops`. Omit for both.
route_nameYesRoute short name (e.g. "T30", "32A") or numeric external ID.

Output Schema

NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

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?

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real substance beyond that: exactly which fields come back per vehicle and how the headways block is computed (vehicle count, live gaps in minutes front-to-back, timetable frequency). It stops short of noting pagination, rate limits, or what happens with an unknown route name.

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 what is returned, then usage triggers, then the alternative tool, then input requirements — a sensible agent-facing order. The headways sentence is dense but earns its place; nothing is redundant, though the run-on punctuation makes it slightly heavier than needed.

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 an output schema present and rich annotations, the description needn't spell out return shapes, and it correctly focuses on data semantics and tool selection. For a two-parameter read tool it is nearly complete; only error behavior on an invalid route name is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented with examples and range. The description's notes on direction (0/1, index into get_route_static's stops) and route short name vs numeric ID largely restate the schema, adding only a cross-reference rather than new syntax or edge-case behavior. Baseline 3 applies.

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 (returns every vehicle currently running on a route) and enumerates the payload: position, destination, next stop with ETA, plus headway summaries. It explicitly contrasts with get_stop_realtime, so an agent can pick it apart from siblings without opening schemas.

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 concrete triggering questions ("where is my tram right now?", how many vehicles, how far away, how often it runs) and an explicit exclusion: prefer get_stop_realtime when the user is at a stop. It also tells the agent how to narrow with direction, which is a usage decision, not just a schema fact.

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.