Skip to main content
Glama

route_vehicles

Get live vehicle positions for one route from the agency GTFS Realtime vehicle positions feed. Pass agency to resolve the route inside one agency. For GO Transit the route can be a line short name or long name such as LW or Lakeshore West, a bus route number such as 41, or UP for UP Express trains. Without agency the TTC is tried first, then HSR, then GO Transit, so a route name that exists in more than one agency returns the first match in that order.

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": "<route>"
    },
    "name": "route_vehicles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum vehicles to return
routeYesA route_id, short name, or long name, for example 501, King, or 1
agencyNoOptional agency the route belongs to: ttc, hsr or go

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / agency / description
      Previous value: -"Optional agency the route belongs to: ttc or hsr"New value: +"Optional agency the route belongs to: ttc, hsr or go"
    • changedInput schema / properties / agency / enum
      Previous value: -[
      -  "ttc",
      -  "hsr"
      -]New value: +[
      +  "ttc",
      +  "hsr",
      +  "go"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does substantial work: it reveals the data source, the implicit multi-agency fallback order (TTC → HSR → GO), and that a route name present in multiple agencies returns the first match. It omits what happens on no-match, data freshness/latency, and any error or rate-limit behavior.

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 the core purpose, then agency scoping, then route-format detail, then fallback order. Each sentence carries distinct information with no repetition, though the GO Transit enumeration is dense and could be tightened slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter read tool with no output schema and no annotations, the description covers input behavior well but never indicates what a returned vehicle position contains (position, bearing, timestamp) or what a no-match result looks like. Those gaps matter because no output schema exists to fill them.

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 baseline would be 3, but the description adds real meaning beyond the schema: it explains that 'route' accepts agency-specific forms (GO line short/long name like LW or Lakeshore West, bus number like 41, UP for UP Express) and that 'agency' scopes route resolution rather than filtering results post hoc.

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 — 'Get live vehicle positions for one route' — and names the underlying source (the agency GTFS Realtime vehicle positions feed). That resource is plainly distinct from the sibling tools dealing with departures, stops, and alerts, so an agent can select it without opening the schema.

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?

Gives clear operational context: pass 'agency' to resolve a route inside one agency, otherwise TTC, HSR, then GO are tried in order. It does not explicitly say when to prefer this over next_departures or service_alerts, but the resource framing makes the boundary inferable.

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.

Resources