Skip to main content
Glama
188zjl
by 188zjl

查询起终点路线并推荐交通方式

amap_get_directions
Read-onlyIdempotent

Resolve two addresses to coordinates, compare walking, driving, and transit routes, and get distance, duration, and recommended travel mode with step-by-step directions.

Instructions

主要入口:输入起点和终点地址/地点,一次解析真实坐标,比较步行、驾车和公交,返回距离、耗时、关键步骤及推荐交通方式。单个方式失败时仍返回其他可用方案。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modesNo需要比较的交通方式,默认同时查询步行、驾车和公交
originYes起点的地点名、POI 或完整地址
destinationYes终点的地点名、POI 或完整地址
origin_cityNo可选的起点城市名或 adcode,用于地点消歧和公交规划
destination_cityNo可选的终点城市名或 adcode,用于地点消歧和跨城公交
driving_strategyNo可选的高德驾车 strategy

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
toolYes
errorNo
summaryYes
metadataYes
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds behavioral context: it parses real coordinates, compares multiple modes, and returns fallback results when a mode fails. This surpasses annotation-only insight, though it does not detail rate limits or cost implications.

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, well-structured sentence that front-loads the tool's primary role ('主要入口') and efficiently covers input, process, output, and error handling. No extraneous information.

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

Completeness5/5

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

Given the tool's complexity (6 parameters, 2 required), comprehensive schema descriptions, and existence of an output schema, the description adequately covers input, processing steps, and output (distance, time, steps, recommendation). It also addresses error resilience. No significant gaps remain.

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%, providing good per-parameter documentation. The description adds high-level context (e.g., parsing coordinates, mode comparison) but does not significantly enhance individual parameter semantics beyond what the schema already supplies. Baseline score of 3 is appropriate.

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 is the main entry for querying directions between an origin and destination, comparing walking, driving, and transit, and returning distance, time, key steps, and a recommendation. This distinguishes it from siblings like amap_plan_route by emphasizing multi-mode comparison and recommendation.

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 implicitly positions this as the primary directions tool ('主要入口') but does not explicitly specify when to use this vs alternatives, nor does it provide exclusions or prerequisites. Usage guidance is implied but not formally stated.

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/188zjl/amap-location-mcp'

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