Skip to main content
Glama

Lviv Public Transport

Get Stop Realtime

get_stop_realtime
Read-onlyIdempotent

Returns live arrivals at a stop: route, destination, vehicle type, minutes until arrival, and each vehicle's position. Use this as the default tool when the user asks about arrivals, departures, or the next bus/tram at a specific stop. Requires a numeric stop ID (shown on stop signage); use search_stops when you have a stop name, or get_stops_around_location when you have coordinates.

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": {
      "stop_id": "<stop_id>"
    },
    "name": "get_stop_realtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
stop_idYesMunicipal stop code shown on stop signage (e.g. 707). Accepts a positive integer or an equivalent digit-only string.
lowfloor_onlyNoOnly low-floor arrivals (step-free: wheelchairs, prams). Timetable entries without a tracked vehicle are left out, since their floor is unknown. Default false.

Output Schema

NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

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?

The annotations already declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered structurally; the description adds that data is 'live' rather than scheduled and that the input must be a signage code rather than an internal ID. It adds genuine context beyond annotations, but does not mention data freshness/staleness windows, rate limits, or what happens for stops with no active service, which would push it to 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.

Conciseness5/5

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

Two sentences with zero filler: the return payload is front-loaded, the default-tool designation follows, and the routing alternatives plus prerequisite close it out. Every clause carries actionable information.

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?

An output schema exists, so return-value shape need not be explained, and the description still previews the key fields. For a two-parameter read-only lookup with full schema coverage, an agent has everything needed to select and invoke it correctly.

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?

The schema has 100% description coverage and already documents both `stop_id` (digit-only string accepted, positive) and `lowfloor_only` (including the subtle exclusion of untracked vehicles). The description only reinforces the stop-ID requirement and never mentions `lowfloor_only`, so it adds little beyond the schema; baseline 3 is appropriate.

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 first sentence names a specific verb and resource ('Returns live arrivals at a stop') and enumerates the payload fields (route, destination, vehicle type, minutes until arrival, vehicle position), so the agent knows exactly what it gets back. It is clearly distinguishable from get_route_realtime and get_vehicle_info, which operate on routes and single vehicles rather than stops.

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?

It explicitly designates itself as the default for arrivals/departures/next-bus questions at a stop, and names the two alternatives with the exact condition that selects them: `search_stops` when you have a name, `get_stops_around_location` when you have coordinates. It also states the prerequisite (a numeric stop ID from signage), so nothing about tool selection is left to inference.

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.