Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_update_element

Replace an OpenStreetMap element's tags and geometry in a full update; first read the element and resend all fields, including unchanged tags.

Instructions

Replace an element's tags and geometry. This is a full replace, not a patch: first read the element with osm_get_element, change what you need, and send back everything including unchanged tags. Returns the new version. 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>",
      "element": "<element>"
    },
    "name": "osm_update_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementYes
changeset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=false, openWorldHint=true), the description discloses the critical data-loss risk that omitted tags are removed by the full replace, that edits are public and attributed to the authenticated user, that the new version is returned, and that OSM editing guidelines apply. This is exactly the context an agent needs before a mutation.

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 short sentences, front-loaded with the destructive full-replace semantics before the workflow advice. Minimal waste, though the OSM-guidelines sentence is the least actionable of the set.

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 nested-object mutation tool with no output schema, it covers replace semantics, auth attribution, and return value well. It omits that a valid open changeset_id is required (an extra round trip via osm_create_changeset) and says nothing about version-conflict failures, which are the most common error for this kind of edit.

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?

Reported schema coverage is 0% and the description does not explain changeset_id or the element object's fields directly. However, "send back everything including unchanged tags" and the read-first instruction implicitly convey the version requirement and whole-object payload semantics, so it partially compensates for the sparse schema documentation.

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?

"Replace an element's tags and geometry" gives a specific verb (replace) and resource (element), and immediately clarifies that it is a full replace rather than a patch. This separates it cleanly from osm_create_element, osm_delete_element, and osm_update_changeset_tags without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It prescribes the exact workflow: read first with the named sibling osm_get_element, modify, then send back everything. It also tells the agent when to prefer a full-replace style and points at the sandbox via OSM_ENV=dev for practice, so the when/when-not is explicit.

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