Skip to main content
Glama

Odpt Service Status

odpt_service_status
Read-onlyIdempotent

Live service status (current train information) for a Japanese railway line: normal operation, delays, or suspension, with the operator's own status text in Japanese and English and when it was last updated. Live status is published for Tokyo Metro and Toei only (verified live 2026-11-13); for any other operator (JR East, Tokyu, Keio, Odakyu, Keikyu, Seibu, Tobu...) the response says status is not covered, with a named reason, instead of an empty list. Needs an ODPT developer consumer key via _apiKey; Pipeworx supplies one if omitted. Example: odpt_service_status({ operator: "Toei" }).

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": {
      "operator": "Toei"
    },
    "name": "odpt_service_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesOptional: your own ODPT developer consumer key. Pipeworx supplies one if omitted.
railwayNoRailway/line name (e.g. "Yamanote", "Marunouchi") or an exact odpt.Railway id. Optional if operator is given, returns all of that operator's lines.
operatorYesOperator with live status: "Tokyo Metro" or "Toei", or an exact odpt.Operator id (other operators return a not-covered message). Required if railway is not an exact id.

Output Schema

NameRequiredDescriptionDefault
sourceNo
statusNo
railwayNo
operatorNo
data_as_ofNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / railway / description
      Previous value: -"Railway/line name (e.g. \"Yamanote\", \"Marunouchi\") or an exact odpt.Railway id. Optional if operator is given — returns all of that operator's lines."New value: +"Railway/line name (e.g. \"Yamanote\", \"Marunouchi\") or an exact odpt.Railway id. Optional if operator is given, returns all of that operator's lines."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the key behavioral surprises: live status exists only for Tokyo Metro and Toei (with a verification date), unsupported operators return a named-reason not-covered response rather than an empty list, and an API key is required but auto-supplied by Pipeworx. These are exactly the facts an agent needs to avoid misinterpreting an empty-looking result.

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 core capability and its coverage limit are front-loaded, and the example call is compact. The parenthetical list of unsupported operators (JR East, Tokyu, Keio, Odakyu, Keikyu, Seibu, Tobu...) is somewhat verbose but illustrates the boundary, so it mostly earns its space.

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 3-parameter read-only lookup with an output schema, the description covers auth, coverage limits, fallback behavior, and freshness. Nothing an agent needs to call it correctly or interpret an unusual response is missing.

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 already 100%, so the baseline is 3, but the description adds meaning by clarifying that _apiKey is effectively optional because Pipeworx supplies one if omitted — resolving an apparent conflict with the schema's required list — and by explaining the consequence of passing a non-covered operator.

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 names a specific verb and resource (live service status for a Japanese railway line) and enumerates the possible values (normal, delays, suspension) plus the returned fields (operator status text in Japanese/English, last-updated timestamp). It also carves out a precise coverage boundary (Tokyo Metro and Toei only) that separates it from the timetable siblings.

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 clearly states the condition under which the tool returns real data versus a 'not covered' message, which is strong when-not guidance. It does not route the agent to a specific alternative for unsupported operators or point at the sibling timetable tools, so it stops short of full when/when-not/alternatives coverage.

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.