Skip to main content
Glama

service_alerts

Get currently active service alerts. Defaults to the TTC, optionally filtered by mode to subway, bus, streetcar, or accessibility alerts; the mode filter applies to TTC alerts only. Pass agency hsr for Hamilton HSR alerts, agency go for GO Transit and UP Express alerts, or agency all for every agency combined.

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

Input Schema

NameRequiredDescriptionDefault
modeNoOptional TTC alert mode filter
limitNoMaximum alerts to return
agencyNoOptional agency selector: ttc (default), hsr, go, or all for every agency combined

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / agency / description
      Previous value: -"Optional agency selector: ttc (default), hsr, or all for both agencies combined"New value: +"Optional agency selector: ttc (default), hsr, go, or all for every agency combined"
    • changedInput schema / properties / agency / enum
      Previous value: -[
      -  "ttc",
      -  "hsr",
      -  "all"
      -]New value: +[
      +  "ttc",
      +  "hsr",
      +  "go",
      +  "all"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and usefully discloses that alerts are currently active, that TTC is the default agency, that mode filtering is TTC-only, and that agency=all combines every agency. It does not describe response format, rate limits, or permissions, but the read-only nature is strongly implied by "Get".

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 dense sentences with no filler. It front-loads the core action and then covers default agency, mode filtering, and agency alternatives in a logical order.

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 simple alert-listing tool with no output schema and no annotations, the description covers the critical calling context: active alerts, default agency, accepted agencies, and the TTC-only mode restriction. It leaves out return value details and pagination behavior, but the input schema already documents the limit parameter.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema by clarifying that the mode filter applies only to TTC alerts and by explaining what agency=all means, though it does not add detail about the limit parameter beyond the schema.

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: "Get currently active service alerts." It further scopes the tool by naming supported agencies (TTC default, HSR, GO, all) and alert modes, which clearly distinguishes it from siblings like next_departures, route_vehicles, and search_stops.

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?

It gives clear default behavior (TTC) and explains how to switch agencies, including the special 'all' value, plus the constraint that mode filtering applies only to TTC alerts. It does not explicitly name when to use this versus the sibling tools or when not to use it, which keeps it from a 5.

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.

Resources