Skip to main content
Glama

amap_direction_transit

Plan public transit routes by providing origin, destination, and city to receive bus and metro options with walking segments, transfers, duration, and fare.

Instructions

公交/地铁路径规划。传入起点/终点和所在城市,返回公交换乘方案——含步行段、公交线路、地铁线路、换乘次数、总耗时、票价。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes城市,如「北京」
dateNo日期,YYYY-MM-DD
timeNo时间,HH:MM
citydNo终点城市(跨城时使用)
originYes起点,支持坐标(lng,lat)或地址
strategyNo策略: 0-最快捷, 1-最经济, 2-最少换乘, 3-最少步行, 5-不乘地铁
destinationYes终点,支持坐标(lng,lat)或地址
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It lists the return contents (transfer plan with details) but does not disclose potential caveats like cross-city support (cityd parameter), the effect of strategy, error behavior, or any limitations. The output list is helpful but insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that states the purpose first and then details the return contents. It is concise and free of waste.

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?

With 7 parameters and no output schema, the description gives a useful high-level view of the return plan but omits explanations for optional parameters (date, time, cityd, strategy) and potential edge cases. It is adequate but lacks depth for a complex tool.

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. The description reiterates the main parameters (origin, destination, city) but adds no additional meaning beyond what the schema already provides.

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?

The description clearly states it performs bus/subway route planning and returns a transit transfer plan including walking segments, bus/subway lines, transfer count, duration, and fare. This specific verb+resource combination distinguishes it from sibling tools for driving, walking, and bicycling.

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?

The description implies usage for transit routing by naming '公交/地铁路径规划', but it does not explicitly state when to use this tool versus alternatives like driving or walking. It mentions required inputs (origin, destination, city) but provides no exclusions or comparisons.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zengzeruidd-a11y/amap-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server