Skip to main content
Glama

What is nearby

whats_nearby
Read-onlyIdempotent

Train, tram and ferry stops, bus stops, primary and secondary schools, cafes and restaurants, pubs, takeaways, supermarkets, parks and play areas around a home, from official open data, within 100 m to 2 km: for each kind the count, the nearest one and its distance. Pass closest with a kind to get the nearest N of that kind instead, however far (the way to ask "how far is the station" for a rural home). To compare many homes, pass up to 50 keys in akeys and get one row per home in homes: one call covers the whole list.

Use it for amenities and transport. Crime and air quality are in address_report; compare_homes also names the nearest station, school, supermarket and park for two to four homes. Keys come from search_addresses or any row another tool returned. A kind with nothing inside the radius is left out of kinds (an empty kinds means nothing within it at all): widen radius_m or use closest. Schools here are by distance only, not catchment or Ofsted rating.

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": "whats_nearby"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoHow many closest places, with `closest`: 10 by default, up to 25 for one home; at most 3 per home with `akeys`.
akeyNoAddress key of one home, from search_addresses. Give this or `akeys`.
akeysNoSeveral homes in one call, up to 50 address keys: use this instead of calling once per home, for example for every home recent_sales or search_homes_for_sale returned.
closestNoInstead of counts within the radius, list the N closest places of this one kind (expanding rings up to 16 km).
radius_mNoRadius in metres, 100 to 2000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / akey / anyOf
      Added value: +[
      +  {
      +    "description": "Address key from search_addresses (hex string).",
      +    "maxLength": 64,
      +    "minLength": 8,
      +    "pattern": "^[a-f0-9]+$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / akey / default
      Added value: +null
    • changedInput schema / properties / akey / description
      Previous value: -"Address key from search_addresses (hex string)."New value: +"Address key of one home, from search_addresses. Give this or `akeys`."
    • removedInput schema / properties / akey / maxLength
      Removed value: -64
    • removedInput schema / properties / akey / minLength
      Removed value: -8
    • removedInput schema / properties / akey / pattern
      Removed value: -"^[a-f0-9]+$"
    • removedInput schema / properties / akey / type
      Removed value: -"string"
    • addedInput schema / properties / akeys
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "description": "Address key from search_addresses (hex string).",
      +        "maxLength": 64,
      +        "minLength": 8,
      +        "pattern": "^[a-f0-9]+$",
      +        "type": "string"
      +      },
      +      "maxItems": 50,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Several homes in one call, up to 50 address keys: use this instead of calling once per home, for example for every home recent_sales or search_homes_for_sale returned.",
      +  "title": "Akeys"
      +}
    • addedInput schema / properties / n / description
      Added value: +"How many closest places, with `closest`: 10 by default, up to 25 for one home; at most 3 per home with `akeys`."
    • removedInput schema / required
      Removed value: -[
      -  "akey"
      -]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuine behavior: `closest` expands rings up to 16 km, per-home results cap at 3 with `akeys`, an empty `kinds` means nothing within the radius at all, and schools are distance-only with no catchment or Ofsted rating. These are non-obvious semantics an agent would otherwise get wrong.

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 the resource list and output shape, then the alternatives and caveats; every clause carries information. It is dense — heavy parentheticals and a long enumeration — but nothing is filler, and the key routing advice appears early.

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?

No output schema exists, and the description compensates by describing the per-kind return (count, nearest, distance), the `homes` row-per-home shape for batch calls, and the empty-`kinds` sentinel. Combined with the explicit sibling routing and key provenance ('keys come from search_addresses or any row another tool returned'), an agent has everything needed to call it correctly.

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 goes beyond it by explaining the interaction between `closest` and `n` (nearest N of one kind, however far) and the `akeys`/`homes` row-per-home relationship and 50-key limit. It does not add format detail for `radius_m` beyond the schema, but the cross-parameter semantics are the valuable part and are covered.

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?

Names a specific verb+resource and enumerates exactly what is covered (rail/tram/ferry/bus stops, schools, cafes, pubs, takeaways, supermarkets, parks, playgrounds) within 100 m to 2 km from official open data. It also states the output shape per kind (count, nearest one, distance), so an agent knows precisely what comes back.

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?

Explicitly routes: amenities/transport here, crime and air quality to address_report, two-to-four-home comparisons to compare_homes. It also gives conditional recipes — use `closest` for a rural 'how far is the station', use `akeys` for up to 50 homes in one call, widen `radius_m` when `kinds` is empty — which is exactly the when-to-use/when-not guidance an agent needs.

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