Skip to main content
Glama
OSM Edit MCP Server

OSM Edit MCP Server

by skywinder

preview_bus_route

Review a PTv2 bus route direction using ordered OSM way and stop IDs, check path, stops and omitted-stop reasons, then prepare an eligible edit proposal for upload.

Instructions

Review one PTv2 bus direction using existing way and stop node IDs in travel order. Supply surveyed or otherwise OSM-compatible evidence covering the path, direction and stops. Record deliberately omitted stops with reasons. Preserve local names. A public-data inspection needs no login. Set prepare_upload=true to bind an exact eligible proposal to the verified OSM account for apply_osm_edit. The returned GeoJSON can also be opened as a custom map data layer in iD.

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": {
      "ref": "<ref>",
      "from_name": "<from_name>",
      "to_name": "<to_name>",
      "way_ids": "<way_ids>",
      "stop_ids": "<stop_ids>",
      "source": "<source>"
    },
    "name": "preview_bus_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
nameNo
sourceYes
networkNo
to_nameYes
way_idsYes
operatorNo
stop_idsYes
from_nameYes
driving_sideNoright
source_basisNounconfirmed
omitted_stopsNo
prepare_uploadNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.6/5.0
Behavior3/5

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

With readOnlyHint=false and openWorldHint=true, the description adds real value by clarifying that plain inspection is login-free and that prepare_upload only stages a proposal for apply_osm_edit rather than editing OSM. It also discloses the GeoJSON return usable as an iD layer. However, it never says whether calling without prepare_upload is genuinely side-effect-free, which is exactly the ambiguity the non-read-only annotation creates.

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?

Four compact sentences, front-loaded with the core action, then evidence requirements, auth/upload behavior, and return value. Density is high with little waste; only 'preserve local names' feels slightly orphaned without saying which field it applies to.

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?

For a 13-parameter, non-read-only, open-world tool the description covers workflow, evidence policy, auth, and output destination, and an output schema handles return values. Still missing is any explanation of the OSM tag-like fields (ref, from/to names, network, operator) and the meaning of the source_basis enum values, which an agent must guess.

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 description coverage is 0% across 13 parameters, so the description carries the burden. It does add meaningful semantics for the important ones — way_ids/stop_ids must be in travel order, omitted_stops must carry reasons, prepare_upload binds a proposal — but ref, from_name, to_name, name, network, operator, driving_side, and source_basis go entirely unexplained in both schema and description.

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 first sentence gives a specific verb and resource: review one PTv2 bus direction built from existing way and stop node IDs in travel order. That is clearly distinct from a whole-route or update operation, though it never names siblings such as preview_bus_route_master or preview_bus_route_update, so differentiation is inferred from the phrase 'one ... direction' rather than stated.

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 establishes two modes and when each applies: public-data inspection with no login, versus prepare_upload=true to bind a proposal for apply_osm_edit. It also states an input precondition (evidence covering path, direction, and stops) and a policy for omissions. The gap is that it never excludes or explicitly routes to the sibling preview/update variants.

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