Skip to main content
Glama

Turn a sentence into an Overpass query

overpass_translate
Read-onlyIdempotent

Turns a sentence in English, German, French or Italian, such as "cafés with outdoor seating in Zürich" or "hotels between Bern and Thun", into an Overpass QL query, with the translator of overpass.ch. It does not run the query. The answer says how the sentence was read, gives the query, notes when the query finds more than the sentence asks for (opening hours, for example, are not part of Overpass QL), and other readings of the thing and the place. Write places as on an envelope, with their region or country ("huts above 2500 m in Wallis, Switzerland", "cafés in Springfield, Illinois"): the geocoder looks up place names around the world, and a name alone can be a village elsewhere. Check how the answer read the place; when it is not the place meant, call again with the region or country in the sentence, or with within. within keeps the places to a box (a canton, a country), and a sentence without a place, such as "cafés nearby", searches in it; near is the position of the user. One call counts as one request.

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": {
      "sentence": "<sentence>"
    },
    "name": "overpass_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nearNothe position of the user, for sentences such as "near me" or "the nearest pharmacy"
withinNoonly places in this box count, and a sentence without a place searches in it
languageNolanguage of the names and addresses; the local names when not set
sentenceYeswhat to find and where, in words, up to 500 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / within / description
      Added value: +"only places in this box count, and a sentence without a place searches in it"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive, so the bar is met; the description goes further by disclosing that the tool does not execute the query, what the answer contains (interpretation, the query, over-approximation notes such as opening hours, alternative readings), and that a global geocoder may resolve a bare name to a village elsewhere.

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 purpose and the "does not run" caveat, and nearly every sentence carries usable instruction. It is a dense single paragraph with run-on clauses ("and other readings of the thing and the place") that could be broken up for faster scanning.

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 tool with no output schema and nested object parameters, the description supplies what is otherwise missing: the shape of the answer, the geocoding pitfall, the meaning of the near/within pair, and the request cost. Nothing essential to calling this correctly is absent.

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 100% and the schema already defines `near`, `within`, `language` and `sentence`, so the description mostly re-states them. The one addition is the corrective use of `within` (re-call with a box when the place was misread), but the mention of Italian in the text does not match the `language` enum of en/de/fr, which introduces mild confusion rather than clarifying the parameter.

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?

"Turns a sentence ... into an Overpass QL query" is a specific verb+resource, and "It does not run the query" immediately separates it from overpass_query-style siblings. The scope is unambiguous before the reader reaches any schema.

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?

Gives concrete when-to guidance (write places with region or country, "huts above 2500 m in Wallis, Switzerland") and an explicit recovery path: when the place was misread, call again with the region in the sentence or with `within`. It also explains within vs. near and states the cost model ("one call counts as one request").

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources