Skip to main content
Glama

Alerts

get_alerts
Read-onlyIdempotent

Retrieve live Amtrak fleet operational comments and public service alert titles, filtered by station, route, or train number, with graceful handling of blocked notices pages.

Instructions

Operational comments from the live fleet and, when the notices page is readable, titles from Amtrak's public alerts list. Filter by station, route, or train number. A blocked notices page does not fail the tool.

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_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeNoRoute name fragment.
trainNoTrain number.
stationNoStation code or name. Omit for the whole fleet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuinely new behavior: the tool blends two sources and degrades gracefully when the notices page is blocked, so the agent knows partial results are possible rather than a failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the data sources front-loaded and no filler. The graceful-degradation sentence earns its place; only the slightly compressed first sentence costs it a point.

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?

With no output schema, the description carries the burden of describing returns; it identifies the content (comments, alert titles) but not the record shape, ordering, or whether results are paginated or merged. Adequate for a read-only filter tool, but an agent cannot predict the response structure.

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%, with each of route, train, and station already documented including the 'omit for the whole fleet' note. The description's 'filter by station, route, or train number' only restates those names and adds no matching or format detail beyond the schema.

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 names a specific resource and its two sources: operational comments from the live fleet and titles from Amtrak's public alerts list. That is concrete enough to distinguish it from siblings like get_station_board or get_train_positions, though the retrieval verb is only implied.

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 only implied: the agent can infer it should call this to see alerts or operational comments, optionally narrowed by station, route, or train. No sibling is named as an alternative and there is no explicit when-not guidance.

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