Skip to main content
Glama
OSM Edit MCP Server

OSM Edit MCP Server

by skywinder

preview_bus_route_update

Reviews proposed PTv2 bus route relation updates by preserving the relation ID and parent memberships while showing before snapshots, tag changes, and ordered stop or way replacements for verification before upload.

Instructions

Review updates to a mapped PTv2 bus direction, keeping its relation ID and parent memberships. Supply replacement stop or road IDs in travel order for the lists you want to change. Omitted lists and unrelated tags are preserved. tag_changes can set ref, from, to, name, operator or network. Use null to remove an optional tag. Review the before snapshot and the exact tag and ordered member changes (zero-based half-open ranges). For a relocated restricted stop, supply boarding_roles in stop order with null for retained roles and the observed role for the new stop. prepare_upload binds an eligible edit to the current relation version and account.

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": {
      "relation_id": "<relation_id>",
      "source": "<source>"
    },
    "name": "preview_bus_route_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
way_idsNo
stop_idsNo
relation_idYes
tag_changesNo
driving_sideNoright
source_basisNounconfirmed
omitted_stopsNo
boarding_rolesNo
prepare_uploadNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, open-world mutation, and the description adds real substance beyond them: omitted lists and unrelated tags are preserved, the relation ID and parent memberships survive, and prepare_upload binds the edit to the current relation version and account. It also explains that the review returns a before snapshot plus zero-based half-open ranges, which is behavior the annotations cannot express.

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?

Content is front-loaded with the core purpose and preservation guarantees before the per-parameter rules, and nearly every clause carries information, such as the ordered-range convention and the boarding_roles null pattern. It is dense but not padded, though a few sentences chain multiple rules and could be split for scanability.

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 the description need not explain return values, and it wisely focuses on mutation semantics and preservation behavior. Against 10 parameters at 0% schema coverage, though, the unexplained omitted_stops, source_basis, driving_side, and source fields leave an agent guessing on inputs it must supply or default.

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 0%, so the description must carry parameter meaning, and it covers stop_ids/way_ids semantics ('replacement ... IDs in travel order'), the six allowed tag_changes keys with null-to-remove, and boarding_roles alignment with nulls for retained roles. However, five of ten parameters — omitted_stops, source, source_basis, driving_side, and relation_id — receive no explanation at all, leaving a substantial gap.

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 opens with a specific verb and resource: 'Review updates to a mapped PTv2 bus direction', and adds scoping ('keeping its relation ID and parent memberships') that separates it from a plain read preview like preview_bus_route. It never names a sibling explicitly, so the differentiation is implied 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage guidance is framed around parameters ('Supply replacement stop or road IDs in travel order for the lists you want to change', 'Use null to remove an optional tag'), which is helpful but not the same as when-to-use guidance. It never states when to choose this over preview_bus_route, review_bus_return_trip, or apply_osm_edit, nor any preconditions or exclusions.

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