Skip to main content
Glama

search_stops

Find transit stops and stations by stop number, stop code, or name from the static GTFS feeds. Searches the TTC, Hamilton HSR and GO Transit by default and merges the results; pass agency to search one agency only. Every result carries an agency field (TTC, HSR or GO). GO Transit results include the UP Express stations Union Station, Bloor, Weston and Pearson Airport.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_stops"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to return
queryYesA stop number or part of a stop or station name, for example Union Station or Hamilton GO Centre
agencyNoOptional agency filter: ttc, hsr or go. Omit to search all three agencies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / agency / description
      Previous value: -"Optional agency filter: ttc or hsr. Omit to search both agencies."New value: +"Optional agency filter: ttc, hsr or go. Omit to search all three agencies."
    • changedInput schema / properties / agency / enum
      Previous value: -[
      -  "ttc",
      -  "hsr"
      -]New value: +[
      +  "ttc",
      +  "hsr",
      +  "go"
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it discloses the default multi-agency merge, that each result carries an agency field, and the UP Express/GO coverage quirk. It does not say what happens on zero matches, whether results are ranked, or what other fields a result contains.

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 sentences, front-loaded with the core search capability, followed by scope and then an edge case. The UP Express sentence is niche but earns its place by pre-empting confusion about unfamiliar station names in GO results.

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?

For a simple three-parameter lookup with no annotations and no output schema, the description covers purpose, default scope and the agency result field. It leaves the rest of the result shape (stop id, names, location, routes) undocumented, which matters given there is no output schema.

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%, so the baseline is 3; the description restates the agency default rather than extending it. It does add 'stop code' as a queryable key, which the schema description omits, but says nothing about limit or result ranking.

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 — 'Find transit stops and stations' — and scopes it to static GTFS feeds, which separates it from real-time siblings like next_departures and service_alerts. It does not explicitly name a sibling as an alternative, so it stops just short of the top score.

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?

Explains default behavior (search TTC, HSR and GO and merge results) and how to narrow with agency, which is context for invoking it. It gives no when-to-use versus when-not guidance, e.g. that this is the lookup step before calling next_departures with a stop id.

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