Skip to main content
Glama

GoThere Japan Transit & Travel

Find routes between two places

find_routes
Read-only

Compare ways to travel between two places in Japan, combining trains, subways, buses, flights, ferries, walking and (optionally) taxi or bicycle. Returns several itineraries with duration, fare, transfers, walking time and expected crowding, plus the URL of the result page. Times and fares are estimates computed from typical travel times and service intervals, not from timetables. Returns page (the same search on the site, with map), query (resolved date and time in Japan time), from, to, itineraries[]: depart, arrive, durationMinutes, fareYen (whole party), fareAdultYen, transfers, walkMinutes, crowdMax (1 = empty to 5 = very crowded), ease (0 to 100), tags (recommended, fastest, cheapest, easiest, calmest), advice[], legs[] (mode, line, from, to, depart, arrive, fareYen, crowdLevel). empty is set when nothing was found.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "find_routes"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoNumber of adults (12 and over).
cNoNumber of children aged 6 to 11 (child fare).
dNoDate in Japan time, YYYY-MM-DD. Omit both d and t to search from now. With d only, the search starts at 09:00.
iNoNumber of infants aged 0 to 5.
mNoWhether d/t is the departure time or the latest arrival time.depart
pNoTraveler situation, comma-separated. Any of: luggage, stroller, kids, wheelchair, senior, simple, jrpass. (luggage = large suitcases, stroller = with a baby stroller, kids = with children, wheelchair = step-free routes, senior = avoid long walks, simple = fewer and easier transfers, jrpass = holds a Japan Rail Pass.)
tNoTime in Japan time, HH:MM (24-hour).
wNoLongest acceptable single walk, in minutes.
xNoTransport to exclude, comma-separated. Any of: shinkansen, limited, flight, bus, hbus, ferry. (limited = limited express trains, hbus = highway buses.)
toYesDestination. A place ID (for example "tokyo", "kyoto", "spot-sensoji"; find IDs with search_places), or a map point written as "@lat,lng,label" (for example "@35.7148,139.7967,Senso-ji").
bikeNoSet to 1 to include bicycle options.
fromYesOrigin. A place ID (for example "tokyo", "kyoto", "spot-sensoji"; find IDs with search_places), or a map point written as "@lat,lng,label" (for example "@35.7148,139.7967,Senso-ji").
langNoLanguage of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.en
taxiNoSet to 1 to include taxi options.
limitNoMaximum number of itineraries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses critical behavioral caveats an agent could not otherwise know: results are estimates derived from typical travel times and service intervals rather than timetables, fares are per whole party, and 'empty' is set when nothing is found. It also explains what the result page URL represents.

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 purpose and the estimate-vs-timetable caveat are front-loaded, and the long itinerary/leg field enumeration is justified because no output schema exists. It is dense rather than padded, though the unbroken field list is harder to scan than a grouped structure would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with no output schema, the description compensates by naming the return shape (page, query, itineraries[], legs[], tags, crowdMax scale, ease, advice) and the empty-result behavior. An agent has enough to invoke the tool and interpret its output without further documentation.

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 all 15 parameters, including the enums for m, bike, taxi and lang, are already documented in structured form. The description adds only marginal parameter-level meaning (whole-party fare basis) and does not explain options like p, x, or w, so the baseline 3 for schema-heavy definitions applies.

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 first sentence states a specific action (compare ways to travel) and resource (routes between two places in Japan), and enumerates the combined modes, so an agent can distinguish it from search_places (ID lookup) or get_place (single place detail) without opening the schema.

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 by the opening 'Compare ways to travel between two places'; there is no explicit when-to-use/when-not statement nor a named alternative. The one genuinely useful steering hint ('find IDs with search_places') lives in the schema, not the description, so routing guidance is present but indirect.

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