Skip to main content
Glama

US MBTA Boston Real-Time Transit and Rail MCP

Get MBTA service alerts

get_mbta_service_alerts
Read-onlyIdempotent

Fetch live and upcoming MBTA service alerts including delays, shuttle diversions, and elevator or station notices.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_mbta_service_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum alerts to return (default 10, max 50).
routeNoOptional MBTA route ID filter (e.g. "Red", "Orange", "Blue", "Green-B", "CR-Providence").
lifecycleNoOptional alert lifecycle filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered and the description need not repeat it. The description adds useful scope context by noting that upcoming alerts are included, but says nothing about result ordering, pagination behavior, or freshness beyond "live".

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?

A single front-loaded sentence with a clear verb and no filler; the enumerated alert types each add distinguishing information rather than padding.

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, three-optional-parameter query tool whose schema and annotations are already rich and which has no output schema, the description covers purpose and content scope adequately. Only minor gaps remain around default result ordering and whether upcoming versus active alerts are separated in the response.

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 limit, route, and lifecycle each documented including a range, example route IDs, and enum values. The description adds no parameter detail beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Fetch ... MBTA service alerts") and enumerates the alert categories covered (delays, shuttle diversions, elevator/station notices), which distinguishes it from the sibling prediction/vehicle/stop/route tools. It does not explicitly name a sibling to contrast against, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase "live and upcoming" implies this is the tool for both current and future disruption info, giving implied usage context. However, there is no explicit when-to-use guidance, no mention of when to prefer get_mbta_live_predictions instead, and no statement about the optional filters' purpose in selecting this tool.

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.