Skip to main content
Glama

Places near a surf town

nearby_places
Read-onlyIdempotent

Places around a surf town, closest to the surf first (as on the site): stay (Places to stay), coffee (Coffee), food (Food & drinks), surf (Surf shops & schools), spots (Surf spots (community mapped)). Stays are a saved, merged OpenStreetMap + Overture Maps collection (hotels, resorts, hostels, surf camps, guesthouses, homestays, B&Bs, holiday rentals, villas, camping) with website, phone, email, socials, stars, rooms and facilities where known; a stay only Overture lists has its confidence (0–1), and one under 0.6 is left out. Cafés, food and surf shops/schools are a saved Overture Maps collection too; community-mapped surf spots are a live OpenStreetMap lookup. Places with a reviewed, freely licensed photo (Wikimedia Commons) include it as photo { url, page, author, license }. Each place has distanceKm from the town centre and nearestSpot { name, distanceKm }: the town's curated surf spot closest to it. sort: "surf" (default) puts the places closest to any surf spot first, "distance" closest to the town centre, "stars" (places to stay) most stars first, "name" A–Z; spot (a surf spot's name from get_town) puts the places closest to that one spot first, each with toSpot { name, distanceKm }. sortedBy says the order used (a town without curated spots is in order from its centre). page is the site's page for the answer: for surf schools (kind school) and surf camps (kind surf_camp), the town's surf lessons and surf camps page where it has one (/town//surf-lessons), otherwise the town's Places tab (surf shops, and schools and shops together, are there).

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": {
      "town": "<town>"
    },
    "name": "nearby_places"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOnly one kind of place, e.g. stay: "surf_camp", "hostel", "homestay"; coffee: "cafe", "bakery"; food: "restaurant", "bar"; surf: "school", "shop".
sortNoOrder: "surf" closest to a surf spot first (the default, as on the site), "distance" closest to the town centre, "stars" most stars first (places to stay), "name" A–Z.surf
spotNoA surf spot of the town (its name, from get_town): places closest to this spot first.
townYesTown slug.
limitNo
categoryNostay
radius_kmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / sort
      Added value: +{
      +  "default": "surf",
      +  "description": "Order: \"surf\" closest to a surf spot first (the default, as on the site), \"distance\" closest to the town centre, \"stars\" most stars first (places to stay), \"name\" A–Z.",
      +  "enum": [
      +    "surf",
      +    "distance",
      +    "stars",
      +    "name"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / spot
      Added value: +{
      +  "description": "A surf spot of the town (its name, from get_town): places closest to this spot first.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/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 still adds real behavioral context: mixed live and snapshot data sources, a confidence cutoff (Overture-only stays under 0.6 are dropped), optional Wikimedia photo licensing, distanceKm/nearestSpot/sortedBy in results, and what the page field points to. No auth or rate-limit notes, hence 4 rather than 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the useful category mapping, but the middle is a dense wall of text and the sort definitions are restated almost verbatim from the schema. The provenance detail is valuable; the repetition of enum meanings is not, so it reads longer than necessary.

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?

There is no output schema for a 7-parameter tool, and the description fully carries that burden by describing the returned fields (photo object, distanceKm, nearestSpot, toSpot, sortedBy, page) and the ordering rules. An agent can call and interpret the result without further documentation.

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?

With 57% schema coverage, the description compensates well: it explains kind with per-category examples, defines sort semantics (including the "stars" caveat that it applies to places to stay), and explains spot by reference to get_town. category, limit, and radius_km get little or no treatment beyond the earlier category mapping, leaving some gap.

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 states precisely what the tool returns: places around a surf town grouped into stay/coffee/food/surf/spots, with provenance for each group (saved OSM+Overture collection vs. live OpenStreetMap lookup). It is clear and specific, but it never explicitly distinguishes itself from siblings such as find_surf_spots or get_town, so the agent must infer the boundary.

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?

It gives clear operational guidance: the default sort is "surf" (as on the site), "spot" expects a surf-spot name taken from get_town, and category mapping (stay/coffee/food/surf/spots) is spelled out. It stops short of stating when-not to use it or naming an alternative tool, so it falls below a 5.

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