Skip to main content
Glama

Snap

snap
Read-onlyIdempotent

"Snap coordinate to nearest road" / "find closest road to [lat,lng]" / "is there a road at this point", snap arbitrary GPS coordinates to the nearest routable OSM road for a given profile (car / bike / foot). Use to clean noisy GPS, validate routability before calling directions, or place markers on a road network.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "radius": 50,
      "profile": "driving-car",
      "locations": [
        [
          8.681495,
          49.41461
        ],
        [
          8.687872,
          49.420318
        ]
      ]
    },
    "name": "snap"
  }
}

Input Schema

NameRequiredDescriptionDefault
radiusNo
profileNo
locationsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "locations": [
      +      [
      +        8.681495,
      +        49.41461
      +      ],
      +      [
      +        8.687872,
      +        49.420318
      +      ]
      +    ],
      +    "profile": "driving-car",
      +    "radius": 50
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Snap to road response from OpenRouteService",
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds that snapping is profile-specific and against routable OSM roads, but says nothing about failure behavior (no road within radius), result confidence/distance, or whether multiple candidates are returned. Useful but not rich beyond the annotations.

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?

Front-loads the core action and the three quoted phrasings act as useful retrieval aliases rather than filler. The final sentence is dense but earns its place by listing use cases; only mild redundancy across the quoted variants.

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?

An output schema exists, so return values need not be described, and the core operation is clear. However, for a 3-parameter tool with zero schema descriptions, leaving 'radius' undefined and giving a coordinate-order hint that contradicts the example leaves real gaps an agent could stumble on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry parameter meaning, and it only partially does. It explains 'profile' (car/bike/foot) but never explains 'radius' (the search tolerance, arguably the most consequential parameter), and its '[lat,lng]' phrasing conflicts with the schema example [8.681495,49.41461], which is lon/lat order — a misleading hint for a coordinate tool.

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?

States a specific verb and resource ('snap arbitrary GPS coordinates to the nearest routable OSM road') and reinforces it with three alternative phrasings an agent might match against. It also scopes the operation by profile (car/bike/foot), so the tool is clearly distinguishable from routing siblings like openrouteservice_directions.

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?

Gives three concrete when-to-use cases: cleaning noisy GPS, validating routability before calling directions, and placing markers on a road network. The reference to 'before calling directions' implicitly routes the agent to the sibling for actual routing, but there is no explicit when-not-to-use or statement about what happens when no road is found within range.

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.