Skip to main content
Glama

maps_distance

Calculate straight-line, driving, or walking distance between coordinates. Supports multiple origin points; provide origin(s) and a destination.

Instructions

测量起点到终点的距离(直线距离、驾车距离或步行距离)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo(可选)测量类型:0 直线距离、1 驾车距离(默认)、3 步行距离
originsYes起点坐标,支持多点用 | 分隔,格式"经度,纬度|经度,纬度"
destinationYes终点坐标,格式"经度,纬度"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It reveals that the tool computes straight-line, driving, or walking distance and notes support for multiple origins, but it does not describe output format, units, or behavior for multiple origins. This is adequate but not richly transparent.

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, efficient sentence with no filler. The core purpose is front-loaded, and every word adds value. It is concise without sacrificing clarity.

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?

The parameters are well documented and the tool is simple, but there is no output schema and the description does not explain return format, units, or how multiple origins affect the result. It also does not distinguish itself from the sibling direction tools, leaving some practical gaps for an agent.

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 parameters are already fully documented. The description adds no meaning beyond the schema; it only restates the general purpose. The baseline of 3 applies since the schema carries the parameter documentation burden.

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 the action ('measure distance') and the resource (origin to destination), and lists the distance types. It is distinct from the direction-related siblings by focusing on distance, but it does not explicitly name or contrast those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies that the tool is for measuring distance, but it provides no explicit guidance on when to use this tool versus the many sibling direction tools, nor any exclusions. An agent must infer the appropriate context from the tool name alone.

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