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

Find Nearby Stops

find_nearby_stops
Read-onlyIdempotent

Find nearby stations, bus stops, bike-share ports, and ferry terminals from coordinates. Returns distances, walking times, routes, and Google Maps links; auto-expands search radius if no results.

Instructions

📍 最寄り駅・バス停検索 - 緯度経度(携帯電話のGPSなど位置情報)から一番近い駅・バス停・シェアサイクルポート・水上バス/フェリー乗り場を距離順で返す。各項目に距離・徒歩換算・乗り入れ路線(駅)・事業者と系統数(バス停)・貸出可能台数(シェアサイクル)・Google Maps リンクを付ける。半径内に0件のときは 1km→2km→5km に自動拡大して明示する。駅はODPT障害時も内蔵座標で縮退応答。バス停は都営・西武・横浜市営バス、シェアサイクルは docomoバイクシェア・HELLO CYCLING、水上バス/フェリーは東京クルーズ・東海汽船の乗り場が対象。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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "find_nearby_stops"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYes緯度(例: 35.731)
lonYes経度(例: 139.8148)
typeNo検索対象(省略時は all = 駅+バス停+シェアサイクル+水上バス/フェリー。ferry は水上バスとフェリー港の両方)
limitNo種別ごとの最大件数(省略時 5)
languageNo応答言語の強制指定(省略時は日本語)
radius_mNo検索半径(メートル・省略時 1000)。0件のとき 2km→5km に自動拡大

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.58.32

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description still adds substantial behavior: automatic radius escalation on zero results, graceful degradation to built-in coordinates when ODPT is unavailable, per-category enrichment fields, and the operator universe searched. These are operational traits an agent could not infer from the annotations or schema.

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?

Front-loads the purpose with an icon and one-line summary, then layers return fields, fallback behavior, operator coverage, and the language rule. Dense but well ordered; the long operator enumeration (都営・西武・横浜市営…, docomo・HELLO CYCLING…) is the main thing that could be trimmed without losing decision-relevant information.

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 six-parameter, open-world lookup with an output schema, the description covers trigger conditions, degradation behavior, output enrichment, coverage limits, and the language pitfall. Nothing an agent needs to call it correctly or interpret the 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 100%, so the baseline is 3; the description still adds meaning beyond it, notably that language must be forced for en/zh output and that ferry covers both water-bus and ferry piers, plus how radius relates to the auto-expansion behavior. Minor mismatch: the description says 1km→2km→5km while the radius_m schema says 2km→5km, which slightly muddies the escalation semantics.

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?

States a specific verb+resource: returns the nearest station/bus stop/bike port/ferry pier from lat-lon, sorted by distance, and enumerates exactly what each result carries. The location-proximity scope cleanly separates it from siblings like search_bus, search_ferry, or get_station_info, which are name/ID oriented.

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?

Makes the input precondition explicit (needs lat/lon from GPS or other location source) and gives a concrete conditional rule: when answering in English or Chinese you must set language, otherwise the response defaults to Japanese. It also scopes which operators/ports are covered, which helps decide whether this tool is the right one. It stops short of naming a sibling as the alternative for name-based lookup or for route planning.

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