Skip to main content
Glama
OSM Overpass MCP Server

OSM Overpass MCP Server

by gander-mcp

overpass_query

Run Overpass QL queries against the OpenStreetMap Overpass API to retrieve map data, returning raw responses or GeoJSON FeatureCollections for use in geospatial analysis.

Instructions

Run an Overpass QL query against the OpenStreetMap Overpass API and return the result. Set format to 'geojson' to get a GeoJSON FeatureCollection instead of the raw Overpass response.

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": {
      "query": "<query>"
    },
    "name": "overpass_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesThe Overpass QL query to execute (the full query text, e.g. 'node[amenity=pharmacy](50.0,19.9,50.1,20.0);out;').
formatNo'raw' (default) returns the Overpass response verbatim; 'geojson' converts it to a GeoJSON FeatureCollection.raw

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose the key trait that this hits an external third-party API and that a format flag transforms the response, but it says nothing about rate limits, timeouts, error behavior on malformed QL, or result-size truncation.

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?

Two sentences, front-loaded with what the tool does, followed immediately by the one non-obvious option. No filler, no restating of the title, and the format guidance sits where an agent will read it.

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 two-parameter tool with no output schema, the definition is nearly sufficient: it states the return shape for both format modes and the external dependency. It stops short of covering failure modes or query-size constraints, which matter for an external API call.

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 100%, so the baseline is 3; the description still adds a bit by framing format as 'GeoJSON FeatureCollection instead of the raw Overpass response', clarifying the practical effect of the enum choice. It adds nothing for the query parameter beyond what the schema example already shows.

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 names a specific verb and resource: run an Overpass QL query against the OpenStreetMap Overpass API and return the result. There are no sibling tools to differentiate from, so the only remaining gap is that the kind of data Overpass serves (OSM features/POIs) is left implicit.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite or constraint notes (e.g. bounding-box requirement, query cost limits), and no alternatives or exclusions. The agent must infer that this is the tool for querying OpenStreetMap data from the name and description alone.

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

Deploy Server

Other Tools