Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_upload_gpx

Upload GPX track data as an OpenStreetMap GPS trace and set visibility to share track points anonymously or publicly under the user's name.

Instructions

Upload a GPX file (pass its XML text). The file must contain points with timestamps. visibility is required. Every visibility OSM accepts publishes the track points, and GPS traces can reveal where someone lives, works and travels: ask the user which one they want ('trackable' shares the points anonymously (ordered, with timestamps); 'identifiable' also lists the trace publicly under the user's name.) and never pick for them. Needs the read_gpx / write_gpx OAuth scope (add it to OSM_SCOPES and the OSM app registration). Uploads are processed asynchronously by OSM.

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": {
      "gpx": "<gpx>",
      "description": "<description>",
      "visibility": "<visibility>"
    },
    "name": "osm_upload_gpx"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpxYesGPX XML content
tagsNo
filenameNotrack.gpx
visibilityYes'trackable' shares the points anonymously (ordered, with timestamps); 'identifiable' also lists the trace publicly under the user's name.
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say non-readOnly, non-destructive, open-world. The description adds substantive behavior the annotations cannot convey: OAuth scope requirement (read_gpx/write_gpx plus app registration changes), asynchronous server-side processing, the privacy consequence that traces reveal home/work/travel, and the concrete effect of each visibility value on exposure. This is real operational context, not restated structured data.

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?

Front-loaded with the action and input format, then requirements, then the privacy warning, then operational notes. Dense but each sentence carries information; the visibility parenthetical is long but justified by the privacy stake. Slightly overstuffed on the scope/registration aside.

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?

Covers prerequisites (scope), input constraints (trkpt + timestamps), the consequential parameter choice, and async processing, which is enough for an agent to invoke it correctly without an output schema. What is returned or how to poll for processing status is not described, which is the main remaining gap.

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 40%, so the description must compensate. It does well for gpx (XML text, must contain <trkpt> points with timestamps) and visibility (required, and semantics of both enum values), but leaves description, tags, and filename entirely to the schema, which mostly only gives length bounds. Partial compensation warrants a middle score.

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 and resource ('Upload a GPX file') and immediately clarifies the input form ('pass its XML text'), which distinguishes it from siblings like osm_upload_diff (changeset diffs) or osm_update_gpx (editing an existing trace). An agent knows exactly what artifact this produces.

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?

Gives explicit procedural guidance for the visibility choice ('ask the user which one they want ... never pick for them') and states the required scope prerequisite. It does not explicitly compare against alternatives such as osm_upload_diff or osm_update_gpx, which keeps it from a 5, but the when-to-do-what guidance for the ambiguous decision is strong.

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