Skip to main content
Glama

Cta Bus Predictions

cta_bus_predictions
Read-onlyIdempotent

Chicago CTA bus tracker arrival predictions at a bus stop — route, destination, predicted minutes until arrival ("DUE" = arriving now), delay flag, and vehicle id. Pass stop_id (the 4-5 digit stop number posted on CTA bus-stop signs), optionally with route. If you only know the stop by name, pass route + find_stop (a street/intersection fragment like "clark & madison") and the stop is looked up for you. Example: cta_bus_predictions({ route: "22", find_stop: "addison" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoMax predictions to return, 1-20 (default 10)
routeNoOptional bus route number to filter, e.g. "22", "66", "X49". Required when using find_stop.
_apiKeyNoOptional: your own CTA credentials as "train_key:bus_key" — Train Tracker key (free at transitchicago.com/developers) + Bus Tracker key (free at ctabustracker.com)
stop_idNoCTA bus stop id (stpid), the number on the bus-stop sign, e.g. "1926". Comma-separable up to 10.
directionNoOptional direction to narrow find_stop, e.g. "Northbound", "south"
find_stopNoStop-name fragment to look up when stop_id is unknown, e.g. "clark & madison", "michigan & randolph". Requires route.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-cta-api-key",
      -    "route": "22",
      -    "stop_id": "1926"
      -  },
      -  {
      -    "_apiKey": "your-cta-api-key",
      -    "direction": "Northbound",
      -    "find_stop": "clark & madison",
      -    "route": "66"
      -  }
      -]New value: +[
      +  {
      +    "route": "22",
      +    "stop_id": "1926"
      +  },
      +  {
      +    "direction": "Northbound",
      +    "find_stop": "clark & madison",
      +    "route": "66"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-cta-api-key",
      +    "route": "22",
      +    "stop_id": "1926"
      +  },
      +  {
      +    "_apiKey": "your-cta-api-key",
      +    "direction": "Northbound",
      +    "find_stop": "clark & madison",
      +    "route": "66"
      +  }
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the description doesn't need to repeat those. It adds meaningful behavioral detail beyond annotations: the meaning of 'DUE' as arriving now, the inclusion of a delay flag and vehicle id, and the hidden behavior that find_stop performs a stop lookup for the caller.

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 three well-ordered sentences plus a concrete example. It front-loads the core function, then covers the two parameter modes, and ends with a call example. No sentence is wasted and the structure makes the content scannable.

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 read-only prediction tool with no output schema and six optional parameters, the description covers the essential aspects: what the tool returns, the DUE convention, how to identify a stop, and how to invoke with a stop name. The max and _apiKey parameters are documented in the schema, and the description need not restate them. Slight room remains for explicitly noting comma-separated stop_ids, but that is covered in the schema and not critical for invocation.

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 input schema already has 100% description coverage, so the baseline is 3. The description adds practical semantics on top: stop_id is the '4-5 digit stop number posted on CTA bus-stop signs', find_stop is a 'street/intersection fragment', and the route parameter is required when using find_stop. The included example call further clarifies how these parameters combine.

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 and resource: 'arrival predictions at a bus stop' for the Chicago CTA bus tracker, and enumerates the output fields (route, destination, predicted minutes, DUE, delay flag, vehicle id). This clearly separates it from sibling tools like cta_bus_positions and cta_train_arrivals, since it is explicitly bus predictions at a stop rather than positions or train arrivals.

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 clear usage context by explaining two invocation modes: pass stop_id optionally with route, or pass route + find_stop when only a stop name is known. It does not explicitly list when to prefer sibling tools, but the stop-based prediction scenario is well defined, and exclusions are unnecessary given the read-only nature.

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.