Skip to main content
Glama
skywinder

OSM Edit MCP Server

by skywinder

get_osm_elements_in_area

Read-onlyIdempotent

Retrieve all OpenStreetMap elements within a specified bounding box to enable geographic data exploration and map editing tasks.

Instructions

Get OSM elements within a bounding box.

Args: bbox: Bounding box as "min_lon,min_lat,max_lon,max_lat"

Returns: Dictionary containing all elements in the area

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bboxYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare the operation as read-only, idempotent, and non-destructive. The description adds that it returns a dictionary containing 'all elements' without filtering, but it does not disclose potential size limits, coordinate validation behavior, or what element types are included. This is adequate but not rich context.

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?

The description is compact and front-loaded: the core purpose appears in the first sentence, followed by a minimal Args section and a brief Returns line. Every sentence contributes needed information, with no filler or repetition.

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?

Given the tool has a single parameter, explicit bbox formatting in the description, an output schema, and rich read-only/idempotent annotations, the description covers what an agent needs to call it safely. It could add a note about whether all element types (nodes, ways, relations) are returned, but that is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden for the bbox parameter. It explicitly documents the required string format ('min_lon,min_lat,max_lon,max_lat'), which is essential for correct invocation and goes well beyond the bare property title 'Bbox'.

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 states a clear verb ('Get'), a clear resource ('OSM elements'), and a specific scope ('within a bounding box'). This distinguishes it from singular resource tools like get_osm_node or get_osm_way, and from search-oriented siblings like search_osm_elements.

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?

The description implies it should be used when you have a bounding box and want all OSM elements in that area. However, it provides no explicit guidance about when to prefer this over alternatives such as search_osm_elements or get_osm_node/way/relation, and no exclusion criteria.

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