Skip to main content
Glama

Get Route Realtime

get_route_realtime
Read-onlyIdempotent

Returns every vehicle currently running on a route: position, the destination it is heading to, and its next stop with estimated arrival. Use when the user asks "where is my tram/bus right now?", how many vehicles are running, or how far the next one is. Prefer get_stop_realtime when the user is at a stop and wants arrival times there. Requires a route short name (e.g. "T30", "32A") or numeric external ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
route_nameYesRoute short name (e.g. "T30", "32A") or numeric external ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / data / properties / destinations
      Added value: +{
      +  "items": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / vehicles / items / properties / destination
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / data / properties / vehicles / items / properties / next_stop
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "arrival": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "arrival"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / data / properties / vehicles / items / required
      Previous value: -[
      -  "id",
      -  "direction",
      -  "lat",
      -  "lng",
      -  "bearing",
      -  "lowfloor"
      -]New value: +[
      +  "id",
      +  "direction",
      +  "destination",
      +  "next_stop",
      +  "lat",
      +  "lng",
      +  "bearing",
      +  "lowfloor"
      +]
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "route_name",
      -  "vehicles",
      -  "updated_at"
      -]New value: +[
      +  "route_name",
      +  "destinations",
      +  "vehicles",
      +  "updated_at"
      +]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / layers
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "polylines": {
      +      "type": "string"
      +    },
      +    "stops": {
      +      "type": "string"
      +    },
      +    "vehicles": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bearing": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "direction": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "lat": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "lng": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "lowfloor": {
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "direction",
      -      "lat",
      -      "lng",
      -      "bearing",
      -      "lowfloor"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / properties / ui_blocks / items / properties / data / required
      Previous value: -[
      -  "center",
      -  "zoom",
      -  "vehicles"
      -]New value: +[
      +  "center",
      +  "zoom",
      +  "layers"
      +]
  2. Changed20 schema fields changed
    • removedOutput schema / properties / data / properties / vehicles / items / properties / bearing / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / vehicles / items / properties / bearing / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / vehicles / items / properties / lat / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / vehicles / items / properties / lat / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / vehicles / items / properties / lng / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / vehicles / items / properties / lng / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / vehicles / items / properties / lowfloor / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / vehicles / items / properties / lowfloor / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / center / additionalItems
      Added value: +false
    • changedOutput schema / properties / ui_blocks / items / properties / data / properties / center / items
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  {
      -    "anyOf": [
      -      {
      -        "type": "number"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  {
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / center / maxItems
      Added value: +2
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / center / minItems
      Added value: +2
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / bearing / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / bearing / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lat / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lat / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lng / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lng / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lowfloor / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lowfloor / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  3. Changed4 schema fields changed
    • addedOutput schema / properties / data / properties / vehicles / items / properties / direction / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / data / properties / vehicles / items / properties / lowfloor / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / direction / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / lowfloor / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "route_name": {
      +          "type": "string"
      +        },
      +        "updated_at": {
      +          "type": "string"
      +        },
      +        "vehicles": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bearing": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "direction": {},
      +              "id": {
      +                "type": "string"
      +              },
      +              "lat": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "lng": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "lowfloor": {}
      +            },
      +            "required": [
      +              "id",
      +              "direction",
      +              "lat",
      +              "lng",
      +              "bearing",
      +              "lowfloor"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "route_name",
      +        "vehicles",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ui_blocks": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "data": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "center": {
      +                "items": [
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                ],
      +                "type": "array"
      +              },
      +              "vehicles": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "bearing": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "direction": {},
      +                    "id": {
      +                      "type": "string"
      +                    },
      +                    "lat": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "lng": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "lowfloor": {}
      +                  },
      +                  "required": [
      +                    "id",
      +                    "direction",
      +                    "lat",
      +                    "lng",
      +                    "bearing",
      +                    "lowfloor"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "zoom": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "center",
      +              "zoom",
      +              "vehicles"
      +            ],
      +            "type": "object"
      +          },
      +          "type": {
      +            "const": "map",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "data"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "view": {
      +      "const": "transit_realtime",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "view",
      +    "data",
      +    "ui_blocks"
      +  ],
      +  "type": "object"
      +}
  5. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds useful behavioral context by specifying that the tool returns every currently running vehicle, the fields returned, and the accepted route identifier forms. It does not contradict the annotations and goes beyond the structured metadata.

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?

Four sentences, each with a distinct job: state the return payload, list triggering user intents, route to the alternative tool, and specify the parameter form. The core behavior is front-loaded, and there is no filler or redundant wording.

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?

This is a simple single-parameter read-only tool with a full output schema. The description covers what the tool returns, when to use it, the alternative to prefer, and what input is required. Nothing an agent needs to invoke it correctly is missing.

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%, and the description's parameter note ('route short name ... or numeric external ID') largely repeats the schema's own description. The description adds no new meaning about the parameter beyond what the input schema already provides, so the 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 description states a specific action and resource: 'Returns every vehicle currently running on a route' and enumerates the output fields (position, destination, next stop with ETA). It also distinguishes itself from get_stop_realtime by naming the sibling and the condition for preferring it, so an agent can select it correctly without inspecting schemas.

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?

The description gives explicit use cases: 'where is my tram/bus right now?', counting vehicles, or how far the next one is. It also provides an explicit alternative: 'Prefer get_stop_realtime when the user is at a stop and wants arrival times there.' This is clear when-to-use and when-not-to-use guidance.

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.