Skip to main content
Glama
tokyo-transit-mcp
by loosephoto

Get Timetable

get_timetable
Read-onlyIdempotent

Retrieve station timetables from ODPT data for a specified station, including optional date, railway, calendar, and response language filters.

Instructions

🕐 時刻表検索 - 指定駅の時刻表をODPTデータから検索します。直接時刻を提供します。language(ja/en/zh)指定で応答言語を強制可能。

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": {
      "station_name": "<station_name>"
    },
    "name": "get_timetable"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo検索日 YYYY-MM-DD(省略時は当日。calendar 未指定時の曜日判定に使用)
railwayNo路線名(省略可)
calendarNo対象カレンダー(省略時は検索日/当日の曜日で自動判定。土日=SaturdayHoliday)
languageNo応答言語の強制指定(省略時は駅名から自動判定)
station_nameYes駅名

Output Schema

NameRequiredDescriptionDefault
statusYesSUCCESS / NO_DATA / ERROR など
messageNo
detected_languageNoja / en / zh

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.58.27
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "detected_language": {
      +      "description": "ja / en / zh",
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "SUCCESS / NO_DATA / ERROR など",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed5 schema fields changedv2.58.7
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / calendar
      Added value: +{
      +  "description": "対象カレンダー(省略時は検索日/当日の曜日で自動判定。土日=SaturdayHoliday)",
      +  "enum": [
      +    "Weekday",
      +    "SaturdayHoliday",
      +    "平日",
      +    "土休日"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "検索日 YYYY-MM-DD(省略時は当日。calendar 未指定時の曜日判定に使用)",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "応答言語の強制指定(省略時は駅名から自動判定)",
      +  "enum": [
      +    "ja",
      +    "en",
      +    "zh"
      +  ],
      +  "type": "string"
      +}
  3. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds useful context beyond that — the ODPT data source and the fact that departure times are returned directly rather than computed — but says nothing about rate limits, coverage gaps, or failure behavior for unknown stations.

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 core purpose front-loaded after an identifying marker, followed by the distinguishing behavior and the language override. Nothing is redundant, though the emoji header carries no semantic weight.

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 five optional-heavy parameters, rich annotations, and an output schema that covers return values, the description only needs to convey purpose and the direct-times behavior, which it does. The date/calendar defaults are left entirely to the schema, which is acceptable given full coverage.

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 date, calendar, and railway is already documented in the schema. The description reinforces only the language parameter and its ability to force a response language, which is marginal added value over the schema and warrants the baseline 3.

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 — searching a given station's timetable from ODPT data — and adds that it returns departure times directly, which separates it from route-planning siblings such as search_route. It does not name any sibling explicitly, so it falls short of a 5.

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: 'station timetable lookup' plus 'provides times directly' suggests use when the user wants a schedule rather than a journey plan. There is no explicit when-to-use, when-not, or named alternative among the many sibling tools.

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