Skip to main content
Glama

Plan a public transport trip in Hong Kong

plan_trip
Read-only

Routes between two places in Hong Kong by MTR, bus, minibus, tram and ferry, best first: departure and arrival times, every walk and ride with stops, Octopus fares for the group, live next departures, traffic delays, and a link to open the trip on a live map. Also lists Klook things to do near the destination (affiliate ads).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination, same forms as from
fromYesStart: a place name, address or "lat,lon" (e.g. "Tsim Sha Tsui Star Ferry", "238 Nathan Road", "22.2988,114.1722")
timeNoISO 8601 date-time, e.g. 2026-10-05T09:30:00+08:00 (Hong Kong is UTC+8). Default: now
adultsNoAged 12–59
optionsNoHow many route options
seniorsNoAged 60+
childrenNoAged 3–11
currencyNoAlso show fares in this currency (fares are charged in HKD). Default follows language
disabledNoPersons with disabilities
languageNoLanguage for place and line names: en, zh-HK (Traditional Chinese), zh-CN (Simplified), ja, koen
arrive_byNotrue: time is when to arrive; false: when to leave
step_freeNoWheelchair / step-free: avoids stairs, minibuses and trams

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
fromYes
sourceYes
messageNoSet when no route was found
optionsYes
leave_atNoISO 8601
arrive_byNoISO 8601
travellersYes
open_in_plannerYesLink that opens this trip on the site with live times
things_to_do_nearbyNoAffiliate ads (Klook): say so if shown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, yet the description adds meaningful context: results are live (next departures, traffic delays), fares are charged in HKD regardless of the requested display currency, and the response embeds affiliate Klook ads. The affiliate disclosure in particular is behavior an agent could not infer from 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 routing purpose and packs the return contents into one dense sentence, with a short second sentence for the affiliate note. Efficient overall, though the first sentence is run-on and could be broken up for faster scanning.

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 an output schema present and annotations covering the safety/open-world profile, the description need not explain return values or permissions, and the fully-covered schema carries the parameters. It is complete for calling the tool, with the only soft gap being cross-tool routing guidance.

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 baseline is 3 — every one of the 12 parameters is already documented. The description only loosely reinforces this ('Octopus fares for the group' hints at the adults/children/seniors/disabled party-size params) without adding syntax or format detail beyond the schema.

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 (routes) and resource (trip between two places in Hong Kong) and enumerates exactly what it returns: modes (MTR, bus, minibus, tram, ferry), times, legs with stops, fares, delays, map link. This is far more specific than the sibling search_place, which only resolves places, so an agent can tell them apart immediately.

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 strongly implied by the near-self-explanatory purpose (route between two given places), but the description offers no explicit when-to-use, when-not, or relationship to search_place (e.g. resolving an ambiguous place name first). No prerequisites or exclusions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources