Skip to main content
Glama

maps_direction_transit_integrated_by_address

Plan a public transit route between two addresses. Get distance, duration, and detailed instructions for buses, subways, and trains, including cross-city trips.

Instructions

Plans a public transit route between two locations using addresses. Unless you have a specific reason to use coordinates, it's recommended to use this tool.

Args:
    origin_address (str): Starting point address (e.g. "北京市朝阳区阜通东大街6号")
    destination_address (str): Ending point address (e.g. "北京市海淀区上地十街10号")
    origin_city (str): City name for the origin address (required for cross-city transit)
    destination_city (str): City name for the destination address (required for cross-city transit)
    
Returns:
    Dict[str, Any]: Route information including distance, duration, and detailed transit instructions.
    Considers various public transit options including buses, subways, and trains.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
origin_cityYes
origin_addressYes
destination_cityYes
destination_addressYes
Behavior3/5

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

With no annotations, the description carries the full burden. It mentions the return type (Dict with distance, duration, instructions) and transit modes considered (buses, subways, trains), but lacks details on error handling, time constraints, or edge cases.

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 reasonably concise with a clear intro and structured args/returns sections. The args section is somewhat redundant with the schema but serves as inline documentation.

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?

Given the complexity (4 required params, no output schema, no annotations), the description covers purpose, arguments, and return values adequately. It explains cross-city requirements and transit options, but does not address error scenarios or when to consider alternative travel modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description provides detailed parameter descriptions, including examples for addresses and notes on city parameters being required for cross-city transit. This adds significant meaning 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?

The description clearly states it plans a public transit route between two locations using addresses, which distinguishes it from coordinates-based and other transport mode tools. The verb 'plans a public transit route' is specific and aligns with the tool name.

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 recommends using this tool over the coordinates variant unless there is a specific reason for coordinates, providing a clear usage context. However, it does not explicitly mention when not to use it or alternatives like driving or walking tools.

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

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