Skip to main content
Glama

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 and weekend). 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.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / include_shapes
      Added value: +{
      +  "description": "Include route polylines ([lat, lng] points per direction) for map drawing. Default false.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "route",
      -  "stops",
      -  "shapes",
      -  "updated_at"
      -]New value: +[
      +  "route",
      +  "stops",
      +  "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 / polylines
      Removed value: -{
      -  "items": {
      -    "items": {
      -      "items": {
      -        "type": "number"
      -      },
      -      "type": "array"
      -    },
      -    "type": "array"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / stops
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "lat": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "lng": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "name": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "lat",
      -      "lng"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bearing": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "eta_minutes": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "eta_status": {
      -        "enum": [
      -          "assigned",
      -          "unassigned"
      -        ],
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "lat": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "lng": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "next_stop_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "route": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "route",
      -      "lat",
      -      "lng",
      -      "bearing",
      -      "next_stop_id",
      -      "eta_minutes",
      -      "eta_status"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • changedOutput schema / properties / ui_blocks / items / properties / data / required
      Previous value: -[
      -  "center",
      -  "zoom",
      -  "polylines",
      -  "stops",
      -  "vehicles"
      -]New value: +[
      +  "center",
      +  "zoom",
      +  "layers"
      +]
  2. Changed34 schema fields changed
    • removedOutput schema / properties / data / properties / route / properties / color / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / route / properties / color / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / route / properties / long_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / route / properties / long_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / route / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / route / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / route / properties / type / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / route / properties / type / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / stops / items / items / properties / lat / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / stops / items / items / properties / lat / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / stops / items / items / properties / lng / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / stops / items / items / properties / lng / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / stops / items / items / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / stops / items / items / properties / name / type
      Added value: +[
      +  "string",
      +  "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 / stops / items / properties / lat / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / stops / items / properties / lat / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / stops / items / properties / lng / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / stops / items / properties / lng / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / stops / items / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / stops / items / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • 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 / next_stop_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / next_stop_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / route / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / ui_blocks / items / properties / data / properties / vehicles / items / properties / route / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / data / properties / stops / items / items / properties / schedule
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "weekend": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "workday": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "workday",
      +    "weekend"
      +  ],
      +  "type": "object"
      +}
  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": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "color": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "long_name": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "name": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "type": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "long_name",
      +            "color",
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "shapes": {
      +          "items": {
      +            "items": {
      +              "items": {
      +                "type": "number"
      +              },
      +              "type": "array"
      +            },
      +            "type": "array"
      +          },
      +          "type": "array"
      +        },
      +        "stops": {
      +          "items": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "departures": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "lat": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "lng": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "name": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "name",
      +                "lat",
      +                "lng",
      +                "departures"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "type": "array"
      +        },
      +        "updated_at": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "route",
      +        "stops",
      +        "shapes",
      +        "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"
      +              },
      +              "polylines": {
      +                "items": {
      +                  "items": {
      +                    "items": {
      +                      "type": "number"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "type": "array"
      +                },
      +                "type": "array"
      +              },
      +              "stops": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "id": {
      +                      "type": "string"
      +                    },
      +                    "lat": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "lng": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "name": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "name",
      +                    "lat",
      +                    "lng"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "vehicles": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "bearing": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "eta_minutes": {
      +                      "anyOf": [
      +                        {
      +                          "maximum": 9007199254740991,
      +                          "minimum": -9007199254740991,
      +                          "type": "integer"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "eta_status": {
      +                      "enum": [
      +                        "assigned",
      +                        "unassigned"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "id": {
      +                      "type": "string"
      +                    },
      +                    "lat": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "lng": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "next_stop_id": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "route": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "id",
      +                    "route",
      +                    "lat",
      +                    "lng",
      +                    "bearing",
      +                    "next_stop_id",
      +                    "eta_minutes",
      +                    "eta_status"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "zoom": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "center",
      +              "zoom",
      +              "polylines",
      +              "stops",
      +              "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.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds meaningful behavioral context beyond this: the data volume warning for polylines, the static vs realtime distinction, and the fact that only departures from the first stop are included in the timetable. There is no contradiction with annotations.

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?

The description is dense but every sentence earns its place: return contents, usage triggers, parameter nuance, and an explicit exclusion pointing to a sibling. It front-loads the most important information before caveats, and no sentence is redundant or 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?

For a tool with only two parameters, a full output schema, and safe read-only/idempotent annotations, the description is complete. It covers what is returned, when to use it, when not to use it, the inclusion condition for the optional parameter, and the accepted input format. An agent has everything needed to select and invoke this tool 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?

The schema already provides 100% coverage for both parameters, including examples for route_name and a description for include_shapes. The description adds value by explaining when to set include_shapes — only when drawing on a map — and warning that the polylines are large and unnecessary for text responses. This is genuinely useful guidance beyond the bare schema.

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 verb ('Returns static route data') and resource, and enumerates the exact contents returned: stop list, direction, timetable, vehicle type, colour. It explicitly differentiates itself from the sibling get_route_realtime by saying this tool is not for live positions. An agent can tell exactly what this tool does without reading 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use conditions ('Use when the user asks which stops a route serves, where it goes, or its scheduled departure times') and a clear when-not-to-use with a named alternative ('Do NOT use this for live vehicle positions — use get_route_realtime instead'). It also gives conditional guidance for include_shapes, which is a parameter-triggered usage rule. This is strong, actionable routing 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.