Skip to main content
Glama

maps_direction_transit_integrated

Plan public transit routes by bus, subway, train, or intercity travel using origin and destination coordinates, with options for cost, transfers, walking, and departure time.

Instructions

公共交通路径规划(路径规划 2.0,v5 接口)。涵盖公交、地铁、火车、跨城交通。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ad1No(可选)起点 adcode
ad2No(可选)终点 adcode
dateNo(可选)出行日期,格式 2026-03-15
timeNo(可选)出行时间,格式 9-54
city1Yes起点所在城市,citycode
city2No(可选)终点所在城市,citycode,跨城时必填
originYes起点坐标,格式"经度,纬度"
strategyNo(可选)换乘策略:0 推荐(默认)、1 最经济、2 最少换乘、3 最少步行、4 最舒适、5 不乘地铁、6 地铁图模式、7 地铁优先、8 时间最短
nightflagNo(可选)是否考虑夜班车:0 不考虑(默认)、1 考虑
originpoiNo(可选)起点 POI ID,与 destinationpoi 成组使用
destinationYes终点坐标,格式"经度,纬度"
show_fieldsNo(可选)控制返回字段,可选:cost(耗时/票价)、navi(导航动作)、polyline(坐标串)
destinationpoiNo(可选)终点 POI ID,与 originpoi 成组使用
AlternativeRouteNo(可选)返回方案条数,1-10,默认 5

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals what transport modes are covered but omits other behavioral traits such as response format, required cross-city parameter handling, rate limits, or any operational caveats. For a route-planning API, this is a meaningful gap.

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 one short, front-loaded sentence that conveys the core purpose and coverage. There is no redundant or filler content, and every phrase earns its place.

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?

This is a complex tool with 14 parameters, no output schema, and no annotations, yet the description only provides a high-level overview. It does not explain cross-city requirements, default behaviors, return structure, or how the many optional parameters interact. The description is too thin to fully support correct invocation for a tool of this complexity.

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 every parameter already has a meaningful description in the schema. The tool description does not add parameter-level semantics beyond noting the cross-city scope, which is the expected baseline when the schema is thorough.

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 the tool's function: public transit route planning, spanning bus, subway, train, and cross-city travel. This distinguishes it from sibling direction tools like driving, walking, and bicycling. The resource and scope are specific and immediately understandable.

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?

The description makes clear that this tool is for transit and cross-city route planning, giving an agent strong contextual guidance on when to select it. It does not explicitly name sibling alternatives or state when not to use it, but the transit coverage is explicit enough to route selection correctly.

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