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

Get Operator Routes

get_operator_routes
Read-onlyIdempotent

Retrieve all train routes and stations for a specified Tokyo transit operator, such as Tokyo Metro or JR East, to browse an operator's complete network.

Instructions

事業者別路線一覧 - 指定事業者の全路線と駅を表示(例: tokyometro, jreast, mir, twr, yurikamome, toden)。

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": {
      "operator_name": "<operator_name>"
    },
    "name": "get_operator_routes"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNo
operator_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. Changed2 schema fields changedv2.58.7
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already cover safety (readOnly, idempotent, non-destructive, open-world), so the description is not responsible for that. It does add that the result includes both routes and stations, which is useful return-shape context, but says nothing about pagination, volume, or failure modes for unknown operator keys.

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?

A single front-loaded sentence with the resource first and the example keys in a trailing parenthetical. Nothing is redundant, though the long example list is the largest part of a very short description.

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 only two parameters, an output schema already present, and annotations covering safety, the description supplies the one piece of external knowledge an agent lacks: valid operator keys. Adding a note about unknown-key behavior would make it complete.

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 50%: operator_name is described only as '事業者キー' and language has no description at all. The description compensates well for operator_name by giving concrete example keys (tokyometro, jreast, mir, twr, yurikamome, toden), which is exactly what an agent needs to form a valid call; the language parameter is left entirely to its enum.

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 names a specific resource and scope: all routes and stations for a given operator, with a verb (display) that makes the read semantics concrete. It does not explicitly differentiate itself from siblings such as get_station_info or list_transit_operators, but the resource is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus alternatives like get_station_info or list_transit_operators, nor any prerequisites. Usage can only be inferred from the fact that it returns routes for one operator.

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