Skip to main content
Glama

乗り換え検索

search_route
Read-only

Find train routes in Japan via Yahoo! Transit. Input stations in Japanese, set departure or arrival time, and get route options with transfers and fares.

Instructions

Search train routes between stations in Japan using Yahoo! Transit.

IMPORTANT: Station names MUST be in Japanese kanji/kana. Convert before calling:

English → Japanese:

  • Tokyo → 東京, Shinjuku → 新宿, Shibuya → 渋谷, Ikebukuro → 池袋

  • Ueno → 上野, Akihabara → 秋葉原, Ginza → 銀座, Roppongi → 六本木

  • Yokohama → 横浜, Osaka → 大阪, Kyoto → 京都

  • Narita Airport → 成田空港, Haneda Airport → 羽田空港

Chinese (Simplified/Traditional) → Japanese kanji:

  • 东京/東京 → 東京, 新宿 → 新宿, 涩谷/澀谷 → 渋谷

  • 秋叶原/秋葉原 → 秋葉原, 横滨/橫濱 → 横浜 Note: Japanese kanji may differ from Chinese hanzi (e.g., 渋 vs 涩/澀, 横 vs 横/橫)

Examples:

  • "Tokyo to Shinjuku" → from: "東京", to: "新宿"

  • "从东京到新宿" → from: "東京", to: "新宿"

  • "Shibuya to Ikebukuro via Harajuku" → from: "渋谷", to: "池袋", via: ["原宿"]

Options summary:

  • timeType: departure(出発), arrival(到着), first_train(始発), last_train(終電), unspecified(指定なし)

  • ticket: ic(ICカード), cash(きっぷ)

  • seatPreference: non_reserved(自由席), reserved(指定席), green(グリーン車)

  • walkSpeed: fast(急いで), slightly_fast(少し急いで), slightly_slow(少しゆっくり), slow(ゆっくり)

  • sortBy: time(到着が早い順), transfer(乗換回数順), fare(料金安い順)

  • useAirline, useShinkansen, useExpress, useHighwayBus, useLocalBus, useFerry: true/false

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes到着駅名 / Arrival station (例: 横浜, Shibuya)
dayNo出発日 / Day (1-31)
viaNo経由駅名の配列(最大3駅)/ Via stations array (max 3)
fromYes出発駅名 / Departure station (例: 東京, Shinjuku)
hourNo出発時刻の時 / Hour (0-23)
yearNo出発年 / Year (例: 2026)
monthNo出発月 / Month (1-12)
minuteNo出発時刻の分 / Minute (0-59)
sortByNo並び順 / Sort by: time=到着が早い順、transfer=乗換回数順、fare=料金安い順
ticketNo運賃タイプ / Fare type: ic=IC運賃、cash=きっぷ運賃
timeTypeNo時刻指定タイプ / Time type: departure=出発時刻、arrival=到着時刻、first_train=始発、last_train=終電、unspecified=指定なし
useFerryNoフェリーを使う / Use ferries
walkSpeedNo歩く速度 / Walking speed
useAirlineNo空路を使う / Use airlines
useExpressNo有料特急を使う / Use express trains
useLocalBusNo路線バスを使う / Use local buses
useHighwayBusNo高速バスを使う / Use highway buses
useShinkansenNo新幹線を使う / Use Shinkansen
seatPreferenceNo座席指定 / Seat preference: non_reserved=自由席優先、reserved=指定席優先、green=グリーン車優先
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description need not restate safety. It adds valuable behavioral context by explaining that station names require language conversion, providing concrete examples, and summarizing option meanings (e.g., timeType, ticket). This goes beyond annotations and helps the agent understand input requirements, though it does not cover all edge cases like error handling.

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?

The description is lengthy but well-structured with clear sections (IMPORTANT, conversion tables, examples, options summary). Each section serves a distinct purpose: no fluff, and the conversion information is essential for correct use. It is front-loaded with the core function, though it could be marginally tighter by merging redundant option explanations.

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 19 parameters and no output schema, the description compensates by covering critical operational details: language conversion, option semantics, and examples. It does not explain the result structure, but that is not required without an output schema. For a complex tool, this description is reasonably complete, though it could mention nonexistent station handling or API limitations.

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 coverage is 100% with every parameter described, so baseline is 3. The description adds significant value beyond schema by offering conversion tables (English/Chinese → Japanese kanji), examples for via stations, and human-readable translations for enum values (e.g., departure=出発). This enhances parameter understanding and helps agents use the tool correctly, especially for station names.

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 begins with 'Search train routes between stations in Japan using Yahoo! Transit,' which clearly states the verb (search), resource (train routes), and geographic scope (Japan). It distinguishes itself by specifying the Japanese rail context, making its purpose unambiguous even without sibling comparisons.

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?

The description provides explicit usage guidance: 'Station names MUST be in Japanese kanji/kana. Convert before calling' followed by detailed conversion tables and examples. It clearly specifies when to use the tool (for Japan train routes) but does not explicitly discuss when not to use it or mention alternatives, as there are no sibling tools. This is strong contextual guidance but stops short of the full 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tysonwu/norikae-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server