Skip to main content
Glama

olamap_snap_to_road

Align raw GPS coordinates to the nearest road network, correcting off-road points into route-ready locations for mapping and trip planning.

Instructions

Snap GPS coordinates to the nearest road network

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": {
      "points": "<points>"
    },
    "name": "olamap_snap_to_road"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsYesArray of coordinates to snap as ["lat,lng", ...]
enhancePathNoAdd intermediate points
interpolateNoInterpolate between points

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and does not meet it. It says nothing about whether this is a read-only lookup, what happens to points far from any road, whether the snapped output preserves input ordering, or whether accuracy/tolerance can be controlled.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is part of why other dimensions are under-served.

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

Completeness2/5

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

For a 3-parameter tool with no annotations and no output schema, the definition should at least state the shape of the result (a list of snapped coordinates?) and the safe-read nature of the call. Neither is present, so an agent must guess about return values and side effects.

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 points, enhancePath, and interpolate are each documented in the schema itself. The description adds no semantic detail beyond that—nothing about the 'lat,lng' string format caveat or what 'enhancePath' actually produces in the output.

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 names a specific verb and resource: 'Snap GPS coordinates to the nearest road network', which an agent can map directly to a map-matching operation. It does not, however, distinguish this from the sibling olamap_nearest_roads, which an agent could easily confuse with snapping a coordinate path.

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?

There is no guidance on when this tool should be chosen over alternatives such as olamap_nearest_roads, olamap_geocode, or olamap_get_directions. No preconditions, no exclusions, and no indication of what input the agent is expected to have in hand.

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