Skip to main content
Glama
OSM Edit MCP Server

OSM Edit MCP Server

by skywinder

suggest_bus_route_ways

Read-onlyIdempotent

Match ordered survey coordinates or a GPX selection to directional OSM ways and preview confirmed bus route road segments before editing.

Instructions

Match ordered survey coordinates or one GPX selection to existing, directional OSM ways. Use input_kind=waypoints for ordered field-observed stops or street turn coordinates. Connected legs up to 2 km are inferred road paths requiring independent confirmation. Dense trace legs accept sampling gaps up to 500 m. provider=editing_api uses the configured map API directly when public Overpass is unavailable. Only bounding boxes leave the server. matched_geojson contains one clipped road line per connected part. geometry_omitted_reason explains when the preview exceeds the output limit. snap_reviews shows nearby OSM segments for ambiguous or explicitly chosen points. Use review_point_indices to inspect up to 20 specific zero-based observation indices, and include_snap_geojson for a map layer. Reuse a reviewed candidate's choice in snap_choices with the same ordered observations to select its versioned road segment. Direction and connectivity are rechecked. Fractions use OSM node order (0 to 1). Inspect gaps, ambiguity, split candidates and turn restrictions before using the ordered way IDs in a route preview. This tool performs no OSM edits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "suggest_bus_route_ways"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsNo
providerNoauto
input_kindNotrace
selection_idNo
snap_choicesNo
include_snap_geojsonNo
review_point_indicesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive status, so credit here goes to the extra disclosure: 'Only bounding boxes leave the server' (a real privacy constraint), the 2 km inferred-leg and 500 m sampling-gap tolerances, and the note that inferred legs require independent confirmation. 'This tool performs no OSM edits' largely restates readOnlyHint, and nothing is said about cost or runtime of the external map API calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded, but the rest is a single undifferentiated block that interleaves input-parameter guidance, output-field explanations, tolerances and a pre-flight checklist. Each sentence carries information, yet there is no structure (no grouping of inputs vs. outputs vs. caveats) to help an agent scan it.

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 7-parameter, 0%-coverage tool of high complexity, the description supplies the important semantics plus tolerances and privacy behavior, and since an output schema exists it needn't explain return values in depth. It is still silent on which parameters are required or mutually exclusive, and on what happens when neither points nor selection_id is supplied.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry all 7 parameters, and it largely does: input_kind semantics, the provider fallback, points as ordered stops, selection_id implied by 'one GPX selection', snap_choices as reusing a reviewed candidate against the same ordered observations, review_point_indices capped at 20 zero-based indices, and include_snap_geojson as a map layer. Gaps remain: the points/selection_id exclusivity rule is never stated, and 'Fractions use OSM node order (0 to 1)' refers to a value not present in the visible schema.

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 opening sentence gives a specific verb and resource: 'Match ordered survey coordinates or one GPX selection to existing, directional OSM ways.' It distinguishes the two input modes and stresses 'directional', but never contrasts itself with close siblings such as suggest_bus_route_stops or match_track_selection, so an agent must infer the boundary.

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 concrete conditional guidance: use input_kind=waypoints for 'ordered field-observed stops or street turn coordinates', and provider=editing_api 'when public Overpass is unavailable'. It also states a downstream workflow step ('Inspect gaps, ambiguity, split candidates and turn restrictions before using the ordered way IDs in a route preview'). What is missing is any explicit exclusion or named alternative for when this tool is the wrong choice.

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