Skip to main content
Glama

Get subway schedule

get_subway_schedule
Read-onlyIdempotent

Retrieve subway station timetable departures by day type and direction; use a station ID from find_subway_stations to check weekday, Saturday, or Sunday schedules.

Instructions

Get timetable departures at a subway station for a day type (01 weekday, 02 Saturday, 03 Sunday) and direction (U up, D down). Obtain subwayStationId from find_subway_stations.

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": {
      "subwayStationId": "<subwayStationId>",
      "dailyTypeCode": "<dailyTypeCode>",
      "upDownTypeCode": "<upDownTypeCode>"
    },
    "name": "get_subway_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-1000); defaults to 1
pageSizeNoMaximum items per page (1-100); defaults to 10
dailyTypeCodeYesDay type: 01 weekday, 02 Saturday, 03 Sunday
upDownTypeCodeYesDirection code: U upbound, D downbound
subwayStationIdYesSubway station ID from find_subway_stations

Output Schema

NameRequiredDescriptionDefault
itemsYes
sourceUrlYes
catalogUrlYes
observedAtYes
totalCountYes
sourceServiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds the ID-sourcing dependency, which is genuinely useful behavior context, but says nothing about pagination limits or result shape beyond that. With annotations carrying the main load, a 3 is appropriate.

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?

Two short sentences, front-loaded with the core purpose and ending with the prerequisite. Slight redundancy in re-listing the enum codes that the schema already defines keeps it from a 5.

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 read-only lookup with a full output schema and complete annotation coverage, the description supplies purpose and the station-ID dependency, which is enough to call it correctly. Return values need not be explained because an output schema exists; only minor details such as pagination defaults are left to the 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 description coverage is 100%, so every parameter including page/pageSize is already documented in the schema. The description's restatement of the day-type and direction codes duplicates enum descriptions rather than adding format or edge-case meaning. Baseline 3 applies.

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 specific verb and resource ('Get timetable departures at a subway station') and scopes it by day type and direction, which distinguishes it from arrival/status siblings like get_bus_arrivals or get_subway_station_info. It stops short of explicitly naming a sibling it is not, so it lands just below the top mark.

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 a concrete precondition — 'Obtain subwayStationId from find_subway_stations' — which is exactly the guidance an agent needs before calling. It does not state when-not-to-use this tool or name an alternative for related needs, so it is clear context without exclusions.

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