Skip to main content
Glama

Generate a route map

generate_route_map

Compute a walking/driving route between two places and generate a map with it overlaid. Both endpoints are pinned automatically — do not also call generate_markers_map for them. Example: from='Tokyo Station', to='Tokyo Tower', mode='walking'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "generate_route_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRoute end. Place name to geocode.
fromYesRoute start. Place name to geocode.
modeNo'walking' (default) or 'driving'.
nameNoOptional: display name for the map. If omitted, the server derives one automatically from place/route.
placeNoOptional: place to center the map on. If omitted, the center is computed automatically from the route.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Optional: display name for the map. If omitted, the server derives one automatically from place/route.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, so the description focuses on adding value: endpoints are pinned automatically, the map center is derived from the route when place is omitted, and the display name is auto-generated. These auto-derivation rules are genuine behavior the annotations do not convey. It does not mention cost, latency, or geocoding failure modes, keeping it below a 5.

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?

Three short sentences, front-loaded with the core action, followed by the sibling warning and an example. Nothing is padded, though the example partly duplicates information already available in the schema enum and required list.

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?

For a five-parameter, fully-described schema with no output schema, the description covers the action, the sibling interaction, and auto-derivation of name and center. The remaining gap is what the caller receives — a map image, a URL, or an artifact — which a reader must infer since no output schema exists.

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%, so the defaults for mode, the optional name, and the optional place center are already documented in the schema. The description's only parameter contribution is reiterating the from/to/mode example, which adds little syntax or format detail beyond structured fields. Baseline 3 is correct when the schema carries the load.

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 uses a specific verb+resource pair ('Compute a walking/driving route ... generate a map with it overlaid') and immediately differentiates from a sibling by warning not to also call generate_markers_map for the endpoints. An agent can identify the tool's job without opening the schema.

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?

It gives a clear triggering scenario with a concrete worked example (from='Tokyo Station', to='Tokyo Tower', mode='walking') and an explicit exclusion for generate_markers_map. It stops short of contrasting with the other sibling, generate_map, so the when-not picture is incomplete but the positive guidance is strong.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.