Skip to main content
Glama

Lviv Public Transport

Get Disruptions

get_disruptions
Read-onlyIdempotent

Lists closures, detours and moved stops the city announced that are in force today: affected routes, the streets a detour uses, routes to take instead of a suspended one, reason, dates and source. The GTFS stop lists and timetables do not reflect any of this. Use when the user asks about road works, closures, detours, or why a route is not running or a vehicle is off its usual path. Pass route and/or stop_id to get only the entries touching them; omit both for the whole city.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_disruptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeNoOnly disruptions on this route, by short name (e.g. "Т30", "А34"). Omit for all routes.
stop_idNoOnly disruptions at this stop. Omit for all stops.

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?

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the description is not obliged to restate safety. It adds genuine context beyond them: the data is externally announced by the city, is scoped to disruptions "in force today", and is explicitly not represented in GTFS stop lists or timetables — an important caveat that prevents an agent from cross-checking the wrong source.

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?

Three sentences, each carrying distinct information: what is returned, when to reach for it, and how to filter. The payload enumeration is front-loaded and no sentence is redundant.

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 two-parameter read tool with an output schema and full annotation coverage, nothing material is missing. The description covers scope, triggers, filtering, and the key caveat that this data is separate from static GTFS data.

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 adds combination semantics the schema does not state: the filters are combinable ("and/or") and omitting both returns the whole city. That clarifies the empty-argument case and the intersection behavior of the two filters.

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 opens with a specific verb and resource ("Lists closures, detours and moved stops the city announced that are in force today") and enumerates the payload (affected routes, detour streets, substitute routes, reason, dates, source). It also separates this from the GTFS-backed siblings by noting that stop lists and timetables do not reflect this data.

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 concrete user-intent triggers: road works, closures, detours, why a route is not running, or why a vehicle is off its usual path. It also explains the filtering decision (pass `route` and/or `stop_id`, or omit both for the whole city). No sibling tool is named as an explicit alternative, which keeps it short of a 5.

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.