Skip to main content
Glama

osm_overpass_query

Execute an Overpass QL query to fetch OpenStreetMap data and add the resulting nodes and ways as point and line layers.

Instructions

Run a raw Overpass QL query and add the resulting nodes/ways as layer(s).

The query must end with an out geom; statement (or equivalent) so results carry coordinates - a query returning only tags/ids produces no geometry and nothing gets added. Points and ways are split into separate _points/_lines layers since a layer has one geometry type; closed ways (e.g. building outlines) still come back as lines, not polygons. Relations aren't parsed. Capped at 2000 elements per call - narrow the query (smaller bbox, fewer tags) rather than raising the cap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
base_urlNo
layer_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully covers behavioral traits: requires `out geom;` to produce geometry, splits into layers by geometry type, closed ways are lines not polygons, relations not parsed, and 2000 element cap. No contradictions.

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?

The description is well-structured and front-loaded with the main purpose. Each sentence adds value, though it could be slightly more concise. No wasted words.

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?

Given the complexity of running a raw query and handling various output types, the description covers all essential aspects: query syntax requirements, geometry handling, layer splitting, element cap, and mention of coordinates. The presence of an output schema reduces need to explain return values.

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

Parameters2/5

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

Schema coverage is 0%, so the description should compensate for all parameters. It implicitly explains the `query` parameter but does not describe `base_url` or `layer_name` at all, leaving ambiguity about their purpose and default behavior.

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 clearly states it runs an Overpass QL query and adds resulting nodes/ways as layers. It also explains how output is split into points/lines layers, distinguishing it from sibling tools that perform different operations.

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 states the query must end with `out geom;` for coordinates, that relations are not parsed, and that there is a 2000 element cap with a recommendation to narrow the query instead of raising the cap. This gives clear when-to-use and how-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piatkowski/qgis-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server