Skip to main content
Glama

transit_route

Calculate public transit routes between two coordinates, providing bus and subway options with selectable strategies for fastest, cheapest, or fewest transfers.

Instructions

计算两点间的公交换乘方案,包括地铁、公交车等公共交通。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes城市名称或城市编码,如:"北京"或"010"
dateNo出发日期,格式:YYYY-MM-DD,默认当天
timeNo出发时间,格式:HH:MM,默认当前时间
citydNo终点城市,跨城查询时使用
originYes起点坐标,格式为"经度,纬度"
strategyNo公交策略:0=最快捷,1=最经济,2=最少换乘,3=最少步行,4=最舒适,5=不乘地铁,默认0
nightflagNo是否包含夜班车:0=不包含,1=包含,默认0
destinationYes终点坐标,格式为"经度,纬度"
Behavior2/5

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

No annotations are present, so the description must fully disclose behavior. It only mentions that it calculates a transit plan, but does not describe return format, edge cases, or side effects (if any). The mention of including metro/bus adds slight context but is insufficient for behavioral transparency.

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?

The description is a single sentence with no filler words, making it concise. However, it is somewhat under-specified for an 8-parameter tool, which prevents a perfect score. There is no structural complexity, but it is not verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 8 parameters, no output schema, and no annotations. The one-line description does not explain output structure, handling of cross-city queries (cityd), or how it fits into the broader routing workflow. It is not complete enough for an agent to confidently invoke this tool without additional context.

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 does not add any parameter-specific meaning beyond what the schema already provides (e.g., coordinate format, strategy options, date/time defaults). It only loosely refers to 'two points' with no additional detail.

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 clearly states it computes public transit transfer plans between two points, including metro and bus. This is a specific verb+resource and implicitly distinguishes it from sibling tools like driving_route or walking_route, though it does not explicitly name alternatives.

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 public transit planning (as opposed to driving or walking), but it does not explicitly state when to use this tool versus alternatives like driving_route or distance_calculate. No exclusions or when-not-to-use guidance is provided.

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/luodora/mcp-amap'

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