Skip to main content
Glama

Odpt Train Timetable

odpt_train_timetable
Read-onlyIdempotent

Stop-by-stop scheduled timetable for one specific Japanese train run, by railway and train number: every station it calls at with arrival/departure time. Covers Tokyo Metro, JR East, Toei and other Japan railway operators. Train numbers come from odpt_station_timetable rows. Needs an ODPT developer consumer key via _apiKey; Pipeworx supplies one if omitted. Example: odpt_train_timetable({ railway: "odpt.Railway:JR-East.Yamanote", train_number: "1234G" }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "railway": "odpt.Railway:Toei.Mita",
      "train_number": "535T"
    },
    "name": "odpt_train_timetable"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesOptional: your own ODPT developer consumer key. Pipeworx supplies one if omitted.
railwayYesExact odpt.Railway id, e.g. "odpt.Railway:JR-East.Yamanote" or "odpt.Railway:TokyoMetro.Marunouchi".
train_numberYesThe train number as shown in a station timetable row, e.g. "1234G".

Output Schema

NameRequiredDescriptionDefault
sourceNo
railwayNo
data_as_ofNo
timetablesNo
train_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds behavior the annotations cannot: the call needs an ODPT developer consumer key via _apiKey and Pipeworx will supply one if omitted. It does not discuss rate limits or what happens with an invalid railway/train number.

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?

Front-loaded with what the tool returns, then scope, then data source, then auth, then an invocation example — no filler sentences. The opening sentence is dense and could be split for readability, but nothing is wasted.

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?

An output schema exists, so return values need not be explained, and the description covers targeting, data source, operator scope, and auth. The only omission is error behavior for bad railway or train-number values, which is minor for a read-only timetable lookup.

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%, so the baseline would be 3, but the description adds provenance for train_number (values come from odpt_station_timetable rows) and clarifies that _apiKey is effectively optional because Pipeworx supplies one — useful given the schema lists _apiKey as required, which would otherwise confuse the agent. It does not add further format detail for the railway id beyond the schema example.

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 states a precise verb and resource: 'Stop-by-stop scheduled timetable for one specific Japanese train run,' and immediately scopes it as one run keyed by railway + train number, which separates it from the sibling odpt_station_timetable that lists rows per station. An agent can pick between the two without opening either schema.

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 prerequisite chain: train numbers come from odpt_station_timetable rows, telling the agent to call that tool first. It also notes the operator coverage (Tokyo Metro, JR East, Toei, others). It stops short of explicit when-not-to-use or failure-mode guidance, so it is clear context rather than a full routing rule.

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.