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

Search Fare

search_fare
Read-onlyIdempotent

Search fares between two stations using ODPT data for Tokyo Metro and Toei. Provide departure and arrival stations to receive the fare directly, with optional language selection (ja/en/zh).

Instructions

🚃 運賃検索 - 2駅間の運賃をODPTデータから検索します(東京メトロ・都営対応)。サーバー内で運賃を直接返します。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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "search_fare"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes到着駅
fromYes出発駅
languageNo応答言語の強制指定(省略時は駅名から自動判定)

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. Changed3 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"
      +}
  3. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world. Beyond that, the description discloses real behavioral traits: the fare is computed and returned server-side, the underlying data source is ODPT, and coverage is limited to the two Tokyo subway operators. It does not say what happens when the pair is outside coverage, but the constraint disclosure is substantive.

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?

Three short sentences that front-load the purpose, then the data source, then the language option; no sentence is wasted. The emoji and duplicated '運賃検索' label are minor decoration rather than a clarity problem.

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?

Output schema exists, so return values need not be explained, and the tool is simple with only three params. Still, for a station-name lookup the description omits how station names must be formatted and what happens for uncovered operators — the main practical failure mode an agent would hit.

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 coverage is 100%, so the baseline is 3: the schema already documents from/to and the language enum with auto-detection fallback. The description restates the language parameter's effect without adding format details, such as whether station names must be exact or Japanese-only.

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 — searching the fare between two stations from ODPT data — and adds a coverage scope (Tokyo Metro / Toei only), which implicitly separates it from route/transit lookups. It never names a sibling explicitly, so differentiation is inferred from scope rather than stated.

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: an agent can infer 'use this when you need a fare for a two-station trip.' The operator coverage note hints at when the tool will not apply, but there is no explicit when-to-use/when-not guidance or pointer to search_route for itinerary planning.

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