Skip to main content
Glama

City Transit Overview

transit_city
Read-onlyIdempotent

A city’s public transit now: its lines, its stations (id, name, lines), the service alerts in force and, with vehicles: true, every vehicle position the agency publishes. Cities: nyc, boston, bay-area, chicago, london, toronto, philadelphia.

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": {
      "city": "<city>"
    },
    "name": "transit_city"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity slug, e.g. london
vehiclesNoInclude live vehicle positions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: results reflect the situation 'now' (live/current data), vehicle positions are opt-in and cover only what the agency publishes, and the open-world scope is bounded by an explicit city list.

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?

One front-loaded sentence carries the whole payload of return contents, followed by a compact city roster; nothing is padding. It is slightly run-on with the parenthetical field list, but every clause earns its place.

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?

With no output schema, the description takes on the burden of describing the return shape and does so: lines, stations with id/name/lines, in-force alerts, and vehicle positions. Pagination, response size, and error behavior for unsupported cities are unaddressed, but the core contract is complete.

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 both parameters are already documented, setting the baseline at 3. The description does add the complete set of valid city slugs where the schema has no enum, and clarifies that vehicles=true means every published vehicle position rather than a sample — modest but real added meaning.

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 concrete resource and verb-less but precise scope: a city's transit network right now, enumerating lines, stations (with their id/name/lines fields), active service alerts, and optional vehicle positions. An agent can tell this is a city-wide aggregate snapshot rather than a single-station lookup, though it never names transit_station to draw the boundary explicitly.

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?

Gives one explicit conditional ('with `vehicles: true`') and lists supported cities, but never says when to prefer this over transit_station or when to omit the vehicles flag (cost/latency). Usage is implied by the described contents rather than stated.

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