Skip to main content
Glama

Nearby points of interest

nearby_pois
Read-only

Nearby points of interest and the travel time to each, from a location (metered: 1 token per returned row). One origin: block_geoid or lat+lon; keep limit small to control spend and context size. Many origins (up to 250): block_geoids or points — one batch call and one rate-limit request, rows tagged by origin, no limit/pagination, so filter with type/mode/max_minutes. Batching saves requests and context, not tokens: it still charges per row. A non-empty truncated (+ truncated_reason) means the balance or row budget cut the batch short.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nearby_pois"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoOrigin latitude (WGS84), with lon.
lonNoOrigin longitude (WGS84), with lat.
modeNowalk, bike, or transit.
typeNoDestination type id (see get_catalog).
limitNoMax rows (first page).
pointsNoMany lat/lon points — one batch call.
block_geoidNo15-digit census block GEOID of a single origin.
max_minutesNoUpper bound on travel time (<=30).
block_geoidsNoMany block GEOIDs — one batch call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / block_geoid / description
      Added value: +"15-digit census block GEOID of a single origin."
    • addedInput schema / properties / lat / description
      Added value: +"Origin latitude (WGS84), with lon."
    • addedInput schema / properties / lon / description
      Added value: +"Origin longitude (WGS84), with lat."
    • addedInput schema / properties / mode / enum
      Added value: +[
      +  "walk",
      +  "bike",
      +  "transit"
      +]
    • addedInput schema / properties / points / items / properties / lat / description
      Added value: +"Latitude (WGS84)."
    • addedInput schema / properties / points / items / properties / lon / description
      Added value: +"Longitude (WGS84)."
  2. Changed2 schema fields changed
    • addedInput schema / properties / block_geoids
      Added value: +{
      +  "description": "Many block GEOIDs — one batch call.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / points
      Added value: +{
      +  "description": "Many lat/lon points — one batch call.",
      +  "items": {
      +    "properties": {
      +      "lat": {
      +        "type": "number"
      +      },
      +      "lon": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "lat",
      +      "lon"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint=false, the description discloses pricing (1 token per returned row), rate-limit request accounting for batches, the absence of limit/pagination in batch mode, and the truncation signal (truncated plus truncated_reason) when a balance or row budget cuts a batch short. This is substantial behavioral context an agent could not get from annotations.

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 front-loaded with purpose and cost, then moves to single-origin, then batch, then truncation — a logical order with no filler sentences. It is dense, packing several clauses per sentence with semicolons, which slightly hurts readability but not information density.

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 nine parameters, no output schema, and only two annotations, the description carries most of the load and does so well: cost model, batching behavior, and truncation semantics are all covered. It does not describe the shape of a returned row (beyond travel time and origin tagging), which leaves a small gap for an absent output schema.

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 already 100%, so the baseline is 3; the description adds real meaning on top by framing mode/type/max_minutes as the filters that replace pagination in batch mode, treating limit as first-page sizing for single-origin calls, and capping origins at 250. It does not explain how the two origin styles interact if both are supplied.

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 — points of interest with travel times from an origin — and separates single-origin from batch usage, which makes the tool's scope concrete. It does not explicitly distinguish itself from plausible siblings like find_place or isochrone, so it stops 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 Guidelines5/5

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

It gives explicit routing for both modes: one origin via block_geoid or lat+lon with a small limit, versus many origins (up to 250) via block_geoids or points in a single batch call. It also states the reason to batch (one rate-limit request) and the tradeoff (no token savings), leaving nothing to inference.

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