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

Search Bus

search_bus
Read-onlyIdempotent

Search bus stops and routes, and find bus-to-train-to-bus transfer itineraries between departure and arrival stops, including accessible non-step bus information.

Instructions

🚌🚃 バス路線・乗り継ぎ・横断乗り継ぎ検索 - バス停/系統を検索、from+to でバス→電車→バスの乗り継ぎ経路を探索。ノンステップバス情報を含む。language(ja/en/zh)指定で応答言語を強制可能。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_bus"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo到着バス停名(乗り継ぎ検索モード: from と共に指定)
fromNo出発バス停名(乗り継ぎ検索モード: to と共に指定・バス→電車→バスも可)
vehicleNo優先する乗り物(乗り継ぎ検索モードのみ)。bus=バス優先, train=電車優先, community_bus=コミュニティバス優先, ferry=水上バス優先, any=自動(最短)。指定乗り物が極端に遠回りになる場合は better_alternative でより良い経路を進言。
languageNo応答言語の強制指定(省略時はバス停名から自動判定)
busstop_nameNoバス停名(部分一致・バス停検索モード)

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. Changed8 schema fields changedv2.58.7
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / busstop_name / description
      Previous value: -"バス停名(部分一致)"New value: +"バス停名(部分一致・バス停検索モード)"
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "出発バス停名(乗り継ぎ検索モード: to と共に指定・バス→電車→バスも可)",
      +  "type": "string"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "応答言語の強制指定(省略時はバス停名から自動判定)",
      +  "enum": [
      +    "ja",
      +    "en",
      +    "zh"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "到着バス停名(乗り継ぎ検索モード: from と共に指定)",
      +  "type": "string"
      +}
    • addedInput schema / properties / vehicle
      Added value: +{
      +  "description": "優先する乗り物(乗り継ぎ検索モードのみ)。bus=バス優先, train=電車優先, community_bus=コミュニティバス優先, ferry=水上バス優先, any=自動(最短)。指定乗り物が極端に遠回りになる場合は better_alternative でより良い経路を進言。",
      +  "enum": [
      +    "bus",
      +    "train",
      +    "community_bus",
      +    "ferry",
      +    "any"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[]
  3. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive behavior, so the safety profile is covered. The description adds two useful behavioral facts beyond that: results include non-step (accessible) bus information and the response language can be forced via language. It says nothing about the better_alternative advisory, result volume, or fallback behavior when no transfer route exists.

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?

It is a single compact, front-loaded sentence that leads with the resource scope before the transfer mode and language behavior. The leading emoji adds noise but consumes minimal space, and no clause is redundant with another.

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 full schema coverage, complete annotations, and an output schema, the description only needs to convey the two search modes and the cross-modal transfer capability, which it does. The remaining gap is guidance on when this beats search_route or search_fare, but the core calling information is present.

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 every parameter, including the vehicle enum and its better_alternative note, is already documented in the schema. The description reinforces that from+to triggers transfer mode and that language forces output language, but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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 verb and resource: searching bus stops/routes and exploring bus→train→bus transfer routes when from+to are supplied. It also flags included content (non-step bus information) and language forcing, which lets an agent tell it apart from ferry/flight siblings. It stops short of explicitly contrasting itself with search_route, which is the closest ambiguous sibling.

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 implied through mode hints: busstop_name for stop lookup and from+to for transfer search. However, there is no explicit statement of when to choose this over search_route, search_fare, or search_ferry, and no prerequisites or exclusions are given. The agent can infer invocation patterns but not tool selection policy.

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