Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_upload_diff

Destructive

Apply creates, modifies, and deletes atomically in one OSM changeset, using negative placeholder IDs for new elements and returning mappings to real IDs.

Instructions

Apply many creates/modifies/deletes atomically in one request (osmChange). Use negative ids for new elements and reference them from ways/relations in the same diff; the result maps placeholder ids to real ones. Order: creates, then modifies, then deletes. Edits are public and attributed to the authenticated OSM user. Follow the OSM editing guidelines; use OSM_ENV=dev to practise on the sandbox server.

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": {
      "changeset_id": "<changeset_id>"
    },
    "name": "osm_upload_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
createNo
deleteNo
modifyNo
changeset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructive/open-world/non-read-only, and the description adds substantial context beyond them: the operation is atomic, edits are public and attributed to the authenticated OSM user, OSM editing guidelines apply, and the response maps placeholder ids to real ids. That is exactly the behavioral disclosure an agent needs before a destructive batch write.

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 core action and atomicity are front-loaded, followed by the id-placeholder convention and ordering, then safety notes. Dense but every sentence carries operational information; only the sandbox sentence is optional rather than essential.

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 destructive batch mutation with a deep nested schema and no output schema, the description still covers atomicity, id semantics, ordering, attribution, and the return-value id mapping. Missing pieces are the changeset_id prerequisite and the version requirement for modify/delete, which are only inferable from the schema.

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?

The description explains the non-obvious semantics of placeholder negative ids and cross-references within a diff, which the schema cannot convey. However, with the reported schema description coverage at 0% and four parameters, it leaves changeset_id and the per-element version requirement for modify/delete essentially unexplained.

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?

The description names a specific verb and resource ('Apply many creates/modifies/deletes atomically in one request (osmChange)') and immediately distinguishes this batch tool from the singular create/update/delete siblings by scoping it to many changes in one atomic request.

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 usage conditions: use negative ids for new elements and reference them from ways/relations, apply creates before modifies before deletes, and use OSM_ENV=dev to practise on the sandbox. It stops short of explicitly routing single-element edits to osm_create_element/osm_update_element, so the alternative is only implied by the 'many…in one request' framing.

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