Skip to main content
Glama

Lviv Public Transport

Get Nearby Vehicles

get_nearby_vehicles
Read-onlyIdempotent

Returns live vehicles near a point, nearest first, each with its route, destination, and distance. Use when the user asks "what transport is near me right now?" or wants a live map around a location. Narrow with route when the user cares about one line; prefer get_route_realtime for a whole route and get_stop_realtime for arrival times at a stop. Requires decimal latitude and longitude (WGS84).

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "get_nearby_vehicles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum vehicles to return, nearest first (1–50, default 15). `total` reports how many were in range.
routeNoOnly vehicles on this route, by short name (e.g. "Т30", "А1"). Omit for all routes.
latitudeYesDecimal latitude of the centre point, WGS84 (e.g. 49.842 for central Lviv).
longitudeYesDecimal longitude of the centre point, WGS84 (e.g. 24.031 for central Lviv).
lowfloor_onlyNoOnly low-floor vehicles (step-free: wheelchairs, prams). Timetable entries without a tracked vehicle are left out, since their floor is unknown. Default false.
radius_metersNoSearch radius in metres (100–1000, default 500).

Output Schema

NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds beyond them: results are live, ordered nearest-first, carry route/destination/distance, and coordinates must be decimal WGS84. It does not mention rate limits or what happens outside the radius, but the output schema covers return shape.

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?

Four sentences, front-loaded with what is returned, then when to use it, then routing to alternatives, then the coordinate prerequisite. Minor redundancy ("live" appears twice, "near a point" / "around a location") keeps it from a 5.

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 tool with rich annotations, an output schema, and 100% schema coverage, the description supplies exactly the missing pieces: when to call it, which sibling to prefer, ordering guarantee, and coordinate system. An agent can call it correctly without opening the schema.

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 description coverage is 100%, so limit, radius_meters, lowfloor_only and route are already fully documented with ranges and defaults. The description only restates that the route parameter narrows to one line and that lat/long are required decimal WGS84, adding intent framing but little new semantics.

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 and resource ("Returns live vehicles near a point") plus ordering semantics ("nearest first") and the payload (route, destination, distance). This distinguishes it immediately from route-level and stop-level siblings.

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?

Explicit trigger phrasing ("what transport is near me right now?"), a narrowing rule for the route parameter, and two named alternatives with the condition that selects each (get_route_realtime for a whole route, get_stop_realtime for arrival times). Nothing 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.