Skip to main content
Glama
mapbox

Mapbox MCP Server

Official

Calculate Destination

destination_tool
Read-onlyIdempotent

Calculate a destination point from an origin, bearing, and distance using geodesic straight-line offset. Useful for finding points like '5 km north of X' or computing waypoints offline.

Instructions

Calculate a destination point given a starting point, bearing, and distance using geodesic (great-circle) straight-line offset. Useful for "find a point 5km north of X", constructing search offsets, or computing waypoints. Bearing: 0=north, 90=east, 180/-180=south, -90=west. Note: this calculates a straight-line geographic offset, not road-network distance. Works offline without API calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsNoUnits for the distancemeters
originYesStarting point
bearingYesDirection of travel in degrees (0=north, 90=east, -90=west, 180=south)
distanceYesDistance to travel

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsYesDistance units
bearingYesBearing used
distanceYesDistance traveled
destinationYesThe calculated destination point
Behavior4/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds that the tool works offline without API calls and uses straight-line geographic offset, which is valuable context beyond annotations.

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 three sentences with no fluff. The primary purpose is stated first, followed by use cases and an important caveat (no road-network). Every sentence earns its place.

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 output schema exists, the description adequately covers purpose, behavior, and offline capability. It could mention that coordinates are in decimal degrees or WGS84, but the schema already specifies numeric ranges. Overall, sufficient for the tool's 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 coverage is 100%, and the description reinforces bearing direction and units but does not add new meaning beyond the schema descriptions. 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 the tool calculates a destination point from origin, bearing, and distance using geodesic straight-line offset. It provides concrete examples like 'find a point 5km north of X' and contrasts with road-network distance, distinguishing it from sibling tools like distance_tool or directions_tool.

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 gives explicit use cases (search offsets, waypoints) and clarifies that it does not compute road-network distances. However, it does not explicitly state when to avoid this tool in favor of siblings like nearest_point_tool or map_matching_tool, leaving some ambiguity.

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

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