Skip to main content
Glama

Search local businesses near a place

data_local_search
Read-onlyIdempotent

Find businesses and services near a place from OpenStreetMap: send what (a category such as cafe, pharmacy, hotel or dentist, or a name such as Starbucks) and near (a place such as "Hoan Kiem, Hanoi") or lat and lon, plus an optional radius_m (default 1500, at most 10000). Nominatim's best text matches in the box around the radius (at most 40), kept when they are a business inside the radius and sorted by distance, so a call can return fewer rows than page_size; each row has title, category, address, lat, lon, distance_m, phone, website and opening_hours where OpenStreetMap has them. Data © OpenStreetMap contributors, ODbL 1.0. Costs 1 credit. Every row has name (platform/collection/id), kind, its fields and source {platform, url, license, attribution, fetched_at, terms_url}; quote source.attribution when you show a row.

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": {
      "what": "<what>"
    },
    "name": "data_local_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude of the search center, with lon.
lonNoLongitude of the search center, with lat.
nearNoA place to search around, such as "Shibuya, Tokyo" or "10 Downing Street, London"; or send lat and lon.
whatYesA category (cafe, restaurant, pharmacy, hotel, supermarket, dentist...) or a business name.
radius_mNoSearch radius in metres (default 1500).
page_sizeNoRows to return, 1 to 40 (default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 and open-world, yet the description adds substantial extra behavior: a 1-credit cost, a 40-row hard cap, the fact that results can be fewer than page_size because matches are filtered to businesses inside the radius and sorted by distance, and an attribution obligation. These are exactly the operational facts an agent needs before calling.

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-loads the purpose and inputs before the filtering and output details, and nearly every clause carries information. It is a single dense block with some run-on phrasing around the filtering logic that could be split for readability.

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?

With no output schema, the description enumerates the returned row fields (title, category, address, lat, lon, distance_m, phone, website, opening_hours) and the source/attribution envelope, so an agent knows what comes back. Nothing material is missing for a read-only, open-world search tool.

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 schema already documents the six parameters; the description still adds value by explaining the what/near-or-lat-lon relationship and the practical consequence of radius on result count. It mostly restates defaults and maxima that the schema already carries, keeping it below a 5.

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?

States a specific verb and resource ("Find businesses and services near a place from OpenStreetMap") plus the exact inputs that define the operation. An agent can immediately tell this is a proximity business search rather than a generic web/document search like data_search.

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

Usage Guidelines4/5

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

Gives concrete usage context: send a category or name in `what` and either a place string in `near` or explicit lat/lon, including realistic examples. It does not compare itself to sibling tools or state when not to use it, so it stops short of explicit alternative routing.

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.