AGENT SKILL
plan-route
Build a route between two addresses in 2GIS — driving, transit, walking — with time and distance
- License 许可
- MIT
- 所属仓库
- theYahia/WWmcp
- 最近更新
- 2026-09-26
- Stars
- ★ 38
- Forks
- 5
01 前言 Front Matter
- name
- plan-route
- description
- Build a route between two addresses in 2GIS — driving, transit, walking — with time and distance
- argument-hint
- <from address> <to address> [driving|public_transport|pedestrian|bicycle|taxi]
03 SKILL.md 正文
/plan-route — Route between two points
Algorithm
- Call
geocodefor the origin address. If the user typed a partial address, callsuggestfirst and ask which of the completions they meant. - Call
geocodefor the destination the same way. - Call
get_directionswith origin_lat, origin_lon, dest_lat, dest_lon and mode (driving by default; the user may ask for public_transport, pedestrian, bicycle or taxi). - Read total_duration_sec and total_distance_m from each returned route; convert seconds to minutes and meters to kilometers before showing them.
- If the user is comparing options, call
get_directionsonce per mode and put the results in one table.
Response format
## Route: Tverskaya 7 → Sheremetyevo D
**Mode**: driving
**Time**: 52 min
**Distance**: 34.8 km
**Legs**: 3
Alternatives:
| Mode | Time | Distance |
|------|------|----------|
| driving | 52 min | 34.8 km |
| public_transport | 1 h 18 min | 41.2 km |
Notes
get_directionstakes four separate numbers, not a point string — unlikesearch_places.- If the response has no routes, report "no route found" rather than inventing one; 2GIS returns nothing for cross-border or unreachable pairs.
reverse_geocodeis the inverse tool: use it when the user gives coordinates and wants to confirm the address before routing.
Examples
/plan-route "Tverskaya 7" "Sheremetyevo D"
/plan-route "Nevsky 28" "Pulkovo" public_transport
/plan-route "my office" "Kazan station" pedestrian
04 同仓库更多 Skills
refund-payment
Возврат по платежу — полный или частичный. Проверяет статус перед возвратом
★ 38
daily-report
Отчёт по платежам за сегодня — суммы, статусы, итого. Использует list_payments
★ 38
create-and-track
Создать платёж в ЮKassa и показать ссылку для оплаты. Использует create_payment и get_payment
★ 38
check-account
Проверка статуса магазина ЮKassa — тестовый/боевой, фискализация, ID
★ 38
semantic-core
Сбор семантического ядра под русский рынок — частотность, расширение, сезонность
★ 38
geo-priority
Где спрос по фразе выше среднего — регионы РФ по объёму и affinity для геотаргетинга
★ 38