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

Get Station Info

get_station_info
Read-onlyIdempotent

Retrieve basic station details from the ODPT API by station name, with optional operator filtering and forced response language (Japanese, English, or Chinese) for transit lookup.

Instructions

駅情報取得 - 駅の基本情報をODPT APIから取得。language(ja/en/zh)指定で応答言語を強制可能。

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": {
      "station_name": "<station_name>"
    },
    "name": "get_station_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNo応答言語の強制指定(省略時は駅名から自動判定)
operatorNo事業者キー(list_transit_operators が返す key)
station_nameYes駅名

Output Schema

NameRequiredDescriptionDefault
statusYesSUCCESS / NO_DATA / ERROR など
messageNo
detected_languageNoja / en / zh

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.58.27
    • changedInput schema / properties / operator / description
      Previous value: -"事業者キー"New value: +"事業者キー(list_transit_operators が返す key)"
    • changedInput schema / properties / operator / enum
      Previous value: -[
      -  "tokyometro",
      -  "toei",
      -  "jreast",
      -  "odakyu",
      -  "keio",
      -  "seibu",
      -  "tobu",
      -  "keikyu",
      -  "keisei",
      -  "sotetsu",
      -  "tokyu",
      -  "yokohama",
      -  "mir",
      -  "twr",
      -  "minatomirai",
      -  "odakyuhakone",
      -  "hokuso",
      -  "saitamarailway",
      -  "toyorapid",
      -  "shibayama",
      -  "jrcentral",
      -  "kantetsu",
      -  "tsukuba"
      -]New value: +[
      +  "tokyometro",
      +  "toei",
      +  "jreast",
      +  "odakyu",
      +  "keio",
      +  "seibu",
      +  "tobu",
      +  "keikyu",
      +  "keisei",
      +  "sotetsu",
      +  "tokyu",
      +  "yokohama",
      +  "mir",
      +  "twr",
      +  "minatomirai",
      +  "odakyuhakone",
      +  "hokuso",
      +  "saitamarailway",
      +  "toyorapid",
      +  "shibayama",
      +  "jrcentral",
      +  "kantetsu",
      +  "tsukuba",
      +  "yurikamome",
      +  "tokyomonorail",
      +  "tamamonorail",
      +  "toden",
      +  "nipporitoneri",
      +  "toei_bus",
      +  "seibu_bus",
      +  "yokohama_bus",
      +  "keio_bus",
      +  "tokyu_bus",
      +  "odakyu_bus",
      +  "keisei_bus",
      +  "jrbuskanto",
      +  "chiba_flower_bus",
      +  "saitama_city_bus",
      +  "tobu_bus_saitama",
      +  "seibu_kanko_chichibu",
      +  "enoden_bus",
      +  "chiba_chuo_bus",
      +  "maruken_tsubasa",
      +  "kawagoe_kanko_ogose",
      +  "tokaikisen",
      +  "tokyocruise",
      +  "shonanmonorail",
      +  "chibamonorail",
      +  "newshuttle",
      +  "seibuyamaguchiline",
      +  "tokyusetagayaline"
      +]
    • 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. Changed5 schema fields changedv2.58.7
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "応答言語の強制指定(省略時は駅名から自動判定)",
      +  "enum": [
      +    "ja",
      +    "en",
      +    "zh"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / operator / description
      Added value: +"事業者キー"
    • changedInput schema / properties / operator / enum
      Previous value: -[
      -  "tokyometro",
      -  "toei",
      -  "jreast",
      -  "odakyu",
      -  "keio",
      -  "seibu",
      -  "tobu",
      -  "keikyu",
      -  "keisei",
      -  "sotetsu",
      -  "tokyu",
      -  "yokohama",
      -  "mir",
      -  "twr",
      -  "minatomirai",
      -  "odakyuhakone",
      -  "hokuso",
      -  "saitamarailway",
      -  "toyorapid",
      -  "shibayama",
      -  "jrcentral"
      -]New value: +[
      +  "tokyometro",
      +  "toei",
      +  "jreast",
      +  "odakyu",
      +  "keio",
      +  "seibu",
      +  "tobu",
      +  "keikyu",
      +  "keisei",
      +  "sotetsu",
      +  "tokyu",
      +  "yokohama",
      +  "mir",
      +  "twr",
      +  "minatomirai",
      +  "odakyuhakone",
      +  "hokuso",
      +  "saitamarailway",
      +  "toyorapid",
      +  "shibayama",
      +  "jrcentral",
      +  "kantetsu",
      +  "tsukuba"
      +]
  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?

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the bar is lower. The description adds genuine context by naming the ODPT external data source and disclosing the language auto-detection fallback when language is omitted, but says nothing about failure modes, ambiguity of station names, or result shape.

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?

Two compact sentences with the core action front-loaded and the language capability second; no filler. It is lean to the point of under-specification, but nothing is wasted.

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

Completeness3/5

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

An output schema exists and all three parameters are documented in the schema, which covers most of the surface. What is missing is the practical guidance an agent needs for a 50+-operator dataset, such as whether operator is required to resolve duplicate station names.

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 the schema already explains language (with its auto-detect default), operator keys, and station_name. The description restates the language override rather than adding new meaning, and does not explain that operator may be needed to disambiguate identically named stations.

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?

States a specific verb and resource: retrieves basic station information from the ODPT API, and names the language-force capability. It distinguishes itself from siblings like get_timetable or get_running_status by being a static station lookup, though it never explicitly contrasts with them.

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?

No explicit when-to-use, when-not-to-use, or named alternative appears. Usage is only implied by the resource name (station lookup vs. route/timetable/status queries), leaving the agent to infer the choice.

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