Skip to main content
Glama

Lviv Public Transport

Get Route Static

get_route_static
Read-onlyIdempotent

Returns static route data: name, long name, vehicle type, colour, the ordered stop list for both directions, and the timetable of departures from the first stop (workday, Saturday and Sunday). Use when the user asks which stops a route serves, where it goes, or its scheduled departure times. Set include_shapes only when you will draw the route on a map — the polylines are large and carry nothing a text answer needs. Do NOT use this for live vehicle positions — use get_route_realtime instead. 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_static"
  }
}

Input Schema

NameRequiredDescriptionDefault
route_nameYesRoute short name (e.g. "T30", "32A") or numeric external ID.
include_shapesNoInclude route polylines ([lat, lng] points per direction) for map drawing. Default false.

Output Schema

NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/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 safety is covered; the description adds real context beyond them by disclosing the returned data shape (both directions, three day types) and a payload-cost warning that polylines are large and carry nothing a text answer needs. That cost caveat is exactly the kind of behavioral trait annotations cannot express.

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?

Front-loads what is returned, then when to use it, then the exclusion, then the parameter caveat — a natural decision order for an agent. Every sentence carries a distinct instruction and there is no filler.

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?

With an output schema present, the description needn't document return fields exhaustively, yet it still names the main ones so the agent knows the answer content. Two documented parameters, a stated input format, and a named alternative cover everything needed to call it correctly.

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 is 3, but the description earns above baseline by adding decision logic for `include_shapes` (only for map drawing, because polylines are large and useless for text answers) rather than restating the boolean. It also reinforces the accepted format of `route_name` with examples like "T30", "32A", though that partly duplicates the schema text.

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 static route data") and then enumerates the payload contents: name, long name, vehicle type, colour, ordered stop list for both directions, and timetable breakdown by day type. It explicitly contrasts itself with `get_route_realtime`, so an agent can separate the two without opening either schema.

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?

Names the concrete user intents that should trigger it ("which stops a route serves, where it goes, or its scheduled departure times") and gives an explicit exclusion with a named alternative: "Do NOT use this for live vehicle positions — use `get_route_realtime` instead." It also scopes the optional parameter with a condition ("only when you will draw the route on a map").

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.