Skip to main content
Glama

Get Trip Status

onebusaway_get_trip
Read-only

Real-time status and stop sequence for a trip. Returns vehicle position, schedule deviation, current phase, and remaining stops. Use tripId from onebusaway_get_arrivals to look up a specific vehicle's progress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tripIdYesTrip ID from an arrivals response or schedule lookup.
serviceDateMsNoService date as Unix milliseconds (midnight local time). Only needed for trips from a previous service day. Omit to use today.
includeScheduleNoWhether to include the full stop sequence with times. Defaults to true.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
statusNoReal-time status of the trip.
tripIdNoThe queried trip ID.
blockIdNoBlock ID grouping this trip with the others the same vehicle runs back-to-back. Pass to onebusaway_get_block for the full block schedule. Null when the trip has no block.
scheduleNoFull stop sequence with times, or null if includeSchedule=false.
situationsNoActive situation IDs affecting this trip.
tripHeadsignNoDestination sign text.
routeShortNameNoRoute short name (e.g. "44").

TDQS

A4.2/5.0
Behavior4/5

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

The annotation readOnlyHint=true already declares the tool read-only, so the description's main contribution is specifying the return data (position, deviation, phase, remaining stops) and noting that includeSchedule defaults to true. It also discloses that serviceDateMs is only needed for previous service days. These details add context beyond the annotation, helping the agent understand what to expect without contradicting it.

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?

Two sentences with zero fluff. The first sentence immediately conveys the verb, resource, and output, while the second provides actionable usage guidance. Front-loaded with the core purpose, every word earns its place.

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

Completeness4/5

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

For a tool with 3 parameters (1 required), a rich output schema, and read-only annotation, the description is sufficiently complete. It explains what the tool returns and how to source the input. It could optionally mention that tripId is required, but that is already in the schema. The absence of pagination or error details is acceptable given the tool's scope and the presence of an output schema.

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%, with each parameter (tripId, serviceDateMs, includeSchedule) already documented. The description adds minimal extra meaning: it mentions where to obtain tripId (arrivals) but does not elaborate on parameters beyond what the schema provides. Per the guideline, a baseline of 3 is appropriate when the schema does the heavy lifting, and the description offers no further parameter insight.

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 clearly states the tool's purpose: 'Real-time status and stop sequence for a trip' and enumerates the specific outputs (vehicle position, schedule deviation, current phase, remaining stops). It also differentiates from siblings by focusing on a single trip and explicitly referencing onebusaway_get_arrivals as the source of tripId, making it distinct from the many search/list tools.

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?

The description gives a concrete usage scenario: 'Use tripId from onebusaway_get_arrivals to look up a specific vehicle's progress.' This implies when to use the tool (when you have a tripId from arrivals) and clarifies the relationship with a sibling. However, it does not explicitly state when not to use it or compare with other trip-related tools (e.g., get_block, get_route), so a clear exclusion is missing.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Every tool targets a distinct operation: find_* for location-based search, search_* for text-based search, get_* for fetching by ID, list_* for enumeration, and get_arrivals for real-time vs get_schedule_for_* for scheduled data. Even similar pairs like find_routes/search_routes are clearly differentiated by their search mode.

Naming Consistency5/5

All tools follow a uniform `onebusaway_` prefix followed by a consistent verb pattern: find (location search), search (text search), get (retrieve by ID), list (enumerate), plus specific get_schedule_for_route/stop. Naming is entirely snake_case and logically structured.

Tool Count5/5

15 tools cover the full scope of a transit API without bloat: discovery (find/search), details (get), enumeration (list), real-time (arrivals/vehicles/trip), schedules, and alerts. Each tool serves a distinct purpose and fits within a typical well-scoped server.

Completeness5/5

The surface covers the primary travel workflows: finding routes/stops by location or name, retrieving full details, real-time arrivals/trip/vehicle tracking, scheduled departures for both routes and stops, service alerts, and agency enumeration. There are no obvious dead ends; each lookup provides IDs for follow-up queries.