Skip to main content
Glama
OSM Edit MCP Server

OSM Edit MCP Server

by skywinder

preview_bus_route_master

Preview grouping independently checked PTv2 bus directions or line variants into one master relation, validating terminals, tags, and existing master IDs before upload.

Instructions

Review grouping independently checked PTv2 bus directions or variants of one line. Supply existing direction relation IDs in the desired member order and the source confirming they belong together. Inspect terminals, tags and existing master IDs. An eligible preview with prepare_upload=true can be applied using apply_osm_edit.

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": {
      "route_relation_ids": "<route_relation_ids>",
      "source": "<source>"
    },
    "name": "preview_bus_route_master"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
sourceYes
source_basisNounconfirmed
prepare_uploadNo
route_relation_idsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations mark this as non-read-only but non-destructive and open-world; the description adds the crucial behavioral detail that the tool is a preview and that an eligible result with prepare_upload=true must be applied using apply_osm_edit. It also notes that terminals, tags, and existing master IDs are inspected. It does not define what makes a preview 'eligible', but the core mutation path is disclosed.

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?

The description is four compact sentences with the purpose front-loaded and the application path at the end. It is information-dense without obvious filler, though phrasing like 'independently checked PTv2 bus directions or variants of one line' is slightly heavy.

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 complex grouping/preview tool, the description covers the core workflow and the apply_osm_edit handoff. Output schema coverage means return values need not be described, but the description still leaves gaps around the optional name and source_basis parameters and the eligibility criteria for applying a preview.

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%, so the description has to compensate. It meaningfully explains route_relation_ids as direction relation IDs that must be in the desired member order, defines source as confirmation that they belong together, and mentions prepare_upload=true. However, it does not explain the name or source_basis parameters, leaving two of five parameters undocumented.

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 action and resource: reviewing the grouping of independently checked PTv2 bus directions or variants of one line. That is concrete enough to distinguish it from single-route tools like preview_bus_route, though the jargon 'PTv2' and 'master' assumes domain familiarity.

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 clear usage context: supply existing direction relation IDs in the desired member order, supply the source confirming they belong together, and apply an eligible preview with prepare_upload=true via apply_osm_edit. It does not explicitly compare against siblings such as preview_bus_route_update, so it falls short of a full when-to-use/when-not-to-use statement.

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