Skip to main content
Glama

Nearby places

find_nearby_places
Read-onlyIdempotent

The nearest populated places (GeoNames cities500: 500 inhabitants or more, or a seat of government) with distance in km, population and path, nearest first. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends Authorization: Bearer <key>.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "find_nearby_places"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees, from -90 to 90.
lonYesLongitude in decimal degrees, from -180 to 180.
langNoComma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language.
limitNoDefault 10
radiusNoKilometres, default 100; places farther away are not returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lat / description
      Added value: +"Latitude in decimal degrees, from -90 to 90."
    • addedInput schema / properties / lon / description
      Added value: +"Longitude in decimal degrees, from -180 to 180."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, and non-open-world, so the safety profile is covered. The description genuinely adds context beyond them: the API-key requirement with the exact `Authorization: Bearer <key>` header format and a specific failure mode (503 NOT_READY on pre-feature datasets). It still omits what the `path` field contains and whether results are truncated or paginated.

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?

Three dense sentences with zero filler, and the core 'what you get back and in what order' information is front-loaded before operational caveats. The 503 sentence is terse to the point of being slightly cryptic, which keeps it from a 5.

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?

With no output schema, the description carries the job of describing return values and does so (distance, population, path, ordering), and it covers auth and a key error case. Remaining gaps are minor: behavior with no matches inside the radius, and what `path` represents hierarchically.

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%, so lat, lon, lang, limit, and radius are already fully documented in the schema, which sets the baseline at 3. The description mentions distance in km and the 500-inhabitant inclusion floor, but that floor is a fixed dataset property rather than a parameter, and it adds nothing about radius or limit semantics beyond the schema.

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?

States a specific verb+resource: 'nearest populated places' with the dataset qualifier (GeoNames cities500, 500+ inhabitants or government seat) and the returned fields (distance in km, population, path) plus ordering ('nearest first'). It does not differentiate against close siblings such as find_places_at_point or find_nearby_postal_codes, so it falls short of a 5.

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?

Usage is only implied: the name and 'nearest ... nearest first' suggest a proximity lookup, and the 503 note implies the tool needs a dataset built after the feature shipped. There is no explicit statement of when to prefer this over find_places_at_point or find_nearby_postal_codes, and no stated behavior for zero results.

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