Skip to main content
Glama

get_directions

Get step-by-step directions between two locations with distance, duration, and traffic data for driving, walking, bicycling, or transit.

Instructions

Get directions and route between two locations.

Returns step-by-step directions with distance and duration. Note: Requires Directions API to be enabled in Google Cloud.

Args: origin: Starting point - can be address or "lat,lng" coordinates destination: End point - can be address or "lat,lng" coordinates
mode: Travel mode - "driving" (default), "walking", "bicycling", or "transit"

Returns: Dictionary with route information including: - Total distance and duration - Step-by-step navigation instructions - Traffic duration (for driving) - Route warnings

Example: get_directions("Union Square, San Francisco", "Ferry Building, San Francisco", mode="walking")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originYes
destinationYes
modeNodriving
Behavior4/5

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

No annotations provided, but the description details the return format (dictionary with distance, duration, steps, traffic duration, warnings) and mentions the API requirement. It does not cover rate limits or errors but is fairly 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 concise and well-structured with Args, Returns, and Example sections. Every sentence adds value without redundancy.

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 3 parameters, no output schema, and no annotations, the description covers inputs, outputs, and an example. It does not mention error handling or limitations, but is adequate for this complexity.

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 description coverage is 0%, but the description explains each parameter: origin/destination can be address or coordinates, mode has default and options. This provides full semantic 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 'Get directions and route between two locations' and mentions step-by-step directions, which distinguishes it from sibling tools like geocode or search_places.

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 explains when to use (get directions), includes a note about enabling the Directions API, and provides an example. It lacks explicit alternatives or when-not-to-use guidance, but context is clear.

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/arthurkatcher/google-maps-mcp'

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