Skip to main content
Glama
GTFS Realtime MCP Server

GTFS Realtime MCP Server

by bribroder

check_service_alerts

Determine whether a service alert may affect a journey by specifying a rail line or station name, so you can plan around potential disruptions.

Instructions

Check if a service alert could affect the journey. You can specify a rail line name (e.g. 'Red') or a station name.

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": "check_service_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
line_nameNo
station_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not state whether the operation is read-only, whether it has side effects, what permissions are needed, or what happens if neither a line nor a station is supplied; the presence of an output schema only reduces the need to explain return values.

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 two short sentences and front-loads the purpose before the parameter guidance. Every sentence contributes useful information with no unnecessary wording.

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

Completeness3/5

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

The tool is simple and has an output schema, so the description does not need to explain return values. Still, for a tool with no annotations and 0% schema description coverage, it should say more about optional parameters and expected usage before the agent can invoke it fully confidently.

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 0%, so the description must compensate for both parameters. It does mention rail line name with an example (“Red”) and station name, and it implies an either/or choice, but it does not explain optionality, defaults, or behavior when both or neither are provided.

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?

The description states a clear verb and resource: “Check if a service alert could affect the journey.” It tells the agent what domain the tool covers, but it does not explicitly distinguish the tool from siblings such as plan_trip or get_next_train.

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?

Usage is implied by “could affect the journey,” suggesting this is relevant when checking a journey or line/station status. However, it gives no explicit when-to-use guidance, no exclusions, and no alternatives to consider.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.