Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_create_element

Creates a single OSM node, way, or relation in an open changeset and returns its new ID. Referenced nodes or members must already exist; use osm_upload_diff for multiple related creations.

Instructions

Create one node, way, or relation inside an open changeset. Returns the new id (version is 1). Referenced nodes/members must already exist; for many related creations use osm_upload_diff. 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_create_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementYes
changeset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) by disclosing the real-world consequence: edits are public and attributed to the authenticated user, plus the return contract (new id, version 1). It does not explain negative placeholder ids, conflict/version errors, or rate limits, so an agent still lacks some operational detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying distinct information: the action, the return, the prerequisite plus alternative, and the safety/attribution context. Front-loaded with the action and return value, with no filler or restatement of the name.

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 mutation tool with no output schema and a nested object parameter, the definition covers the action, return value, prerequisite existence, changeset state, alternative for bulk, and attribution. Remaining gaps (error modes, placeholder id conventions) are modest but real.

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?

Top-level schema coverage is 0%, so the description carries the burden; it does add meaning by scoping changeset_id to an open changeset and telling that referenced nodes/members must pre-exist. However, it never explains the element object's discriminators (type/lat/lon/tags vs nodes vs members), leaving that burden to the nested schema definitions.

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?

States a specific verb (Create) with a specific resource and scope (one node, way, or relation inside an open changeset), then immediately reports the result (new id, version 1). An agent can distinguish this from osm_upload_diff and osm_update_element from the text alone.

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?

Explicitly routes bulk work to osm_upload_diff ('for many related creations use osm_upload_diff') and states the prerequisite that referenced nodes/members must already exist. It also names the OSM_ENV=dev sandbox as the practice route, so when-to-use and when-not-to-use are both covered.

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