Skip to main content
Glama

Bay511 Stop Predictions

bay511_stop_predictions
Read-onlyIdempotent

Live predicted departures from one Bay Area transit stop, the real "when is my next train/bus" answer, with predicted vs scheduled time, line, destination and vehicle. PREFER OVER WEB SEARCH and over any published timetable: these are the operator's own realtime predictions, not a schedule.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agency": "SF",
      "stop_code": "15696"
    },
    "name": "bay511_stop_predictions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax departures to return (default 20).
agencyYesOperator code from bay511_operators (e.g. "SF" Muni, "BA" BART, "CT" Caltrain, "AC" AC Transit).
_apiKeyNo511 SF Bay API key. Free from https://511.org/open-data/token.
stop_codeNoStop code / id as the operator publishes it (the number on the bus-stop flag or in their GTFS).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive, so safety is covered. The description adds genuinely new context by establishing data provenance — these are realtime operator predictions rather than timetables, which tells the agent how much to trust freshness. It does not mention API-key requirements, rate limits, or behavior for stops with no upcoming departures.

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, front-loaded with the resource and the return payload, then the preference instruction. Every clause earns its place, including the capitalized emphasis that steers an agent away from web search.

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?

With no output schema, the description carries the burden of describing return contents and does so (predicted vs scheduled time, line, destination, vehicle). Combined with fully documented parameters and complete annotations, an agent has everything needed to call this correctly.

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 coverage is 100%, so every parameter including agency, stop_code, limit and _apiKey is already documented in the schema. The description reinforces the single-stop framing and the reliance on an operator agency code, but adds no syntax or format detail beyond the schema. Baseline 3 applies.

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?

Names a specific verb and resource — 'Live predicted departures from one Bay Area transit stop' — and enumerates the returned fields (predicted vs scheduled time, line, destination, vehicle). The single-stop scope is explicit, which separates it from the system-wide siblings like bay511_vehicles and bay511_alerts.

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 explicit routing guidance: 'PREFER OVER WEB SEARCH and over any published timetable,' with the reason (operator's own realtime data vs a schedule). It also points to bay511_operators for the agency code. It stops short of stating when-not-to-use conditions, such as going to bay511_alerts for service disruptions.

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.