Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_get_element

Read-only

Fetches a single OpenStreetMap node, way, or relation by type and ID, optionally retrieving a specific historical version.

Instructions

Read a single node, way, or relation (current version, or a specific version).

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": {
      "type": "<type>",
      "id": "<id>"
    },
    "name": "osm_get_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
typeYes
versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the useful fact that either the current or a specific version can be retrieved, but it says nothing about how deleted/invisible elements are handled or what the payload contains — notable since the sibling name 'osm_get_element_full' implies this is the trimmed variant.

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?

A single front-loaded sentence with the resource and the version-mode distinction in parentheses; there is no filler and nothing important is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read tool with no output schema, the description covers the operation, the element types, and the version selection — enough for an agent to call it correctly. The remaining omission, return-shape detail, is not required given the tool's simplicity and would only add noise were it expanded.

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 must carry parameter meaning. It does clarify the version parameter's two modes (current vs. specific) and restates the type enum values, but 'id' is left entirely unexplained and no format or constraint detail is added beyond what the schema already encodes.

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 states a specific verb and resource: 'Read a single node, way, or relation,' with the scope qualifier 'single' that implicitly separates it from the plural osm_get_elements. It does not name any sibling, so an agent must infer the difference from osm_get_element_full and osm_get_elements on its own.

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

Usage Guidelines3/5

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

'A single' implies the when-to-use condition (one element rather than a list or a full expansion), but the description never states when to prefer osm_get_element_full, osm_element_history, or osm_get_elements. The usage boundary is suggested only by adjective choice.

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