Skip to main content
Glama

Search surf towns

search_towns
Read-onlyIdempotent

Find surf towns by name/country text, region, month with good surf, surfer level and wave type. All filters are optional; results are ranked most popular first (popularity.rank 1 = best known: Wikipedia readership, places to stay and surf spots) and include best months, water temperature, number of curated surf spots and a page URL. With a month, the towns are ranked by how good that month's surf was over the last three years in Open-Meteo's wave model (good + great days) and each has inMonth: goodDays and greatDays (% of days rated Good or better, Great or better, at the town's best spot), seaTempC and waveHeightM (null where there are no numbers yet).

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

Input Schema

NameRequiredDescriptionDefault
levelNo
limitNo
monthNoOnly towns whose best season includes this month (1 = January).
queryNoFree text: town, country, area or region, or the name of a surf spot, e.g. "portugal", "bali" or "pipeline" (finds Haleiwa). Towns found by their own names come first; a town found by a spot says which in spotsFound.
regionNo
countryNoCountry name or ISO code, e.g. "Portugal" or "PT". Each town also has a zone (e.g. "Lisbon coast", "Canary Islands").
break_typeNo
include_towns_without_spotsNoBy default only towns with curated surf spots (the ones listed on swellcabin.com) are returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / maximum
      Previous value: -225New value: +300
  2. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Free text: town, country, area or region, e.g. \"portugal\" or \"bali\"."New value: +"Free text: town, country, area or region, or the name of a surf spot, e.g. \"portugal\", \"bali\" or \"pipeline\" (finds Haleiwa). Towns found by their own names come first; a town found by a spot says which in spotsFound."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses the ranking model (popularity.rank driven by Wikipedia readership, places to stay, surf spots), how the ordering changes when a month is supplied (three years of Open-Meteo wave-model data), and null semantics for seaTempC/waveHeightM. That is substantive behavior an agent cannot infer from structured fields.

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?

Purpose is front-loaded in the first clause and each subsequent sentence adds real information about ranking and return fields. The second sentence is dense and long, but nothing is redundant.

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?

There is no output schema, so the description correctly documents the return payload (best months, water temperature, spot count, page URL, inMonth goodDays/greatDays, seaTempC, waveHeightM). It does not cover result-size limits or behavior when nothing matches, which keeps it from being fully complete for an 8-parameter search.

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 only 50% schema coverage the description must carry weight, and it does: it explains what month actually filters on and how it changes ranking, and what the text query matches (town, country, region, or spot name, with spotsFound disambiguation). It omits the limit/cap behavior and the include_towns_without_spots default, leaving a couple of gaps.

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?

Opens with a specific verb and resource ('Find surf towns') and immediately enumerates the filter axes (name/country text, region, month, level, wave type), which is enough for an agent to distinguish this from get_town or nearby_places without opening the schema.

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?

It states that all filters are optional, which is useful context for calling the tool, but it never says when to prefer this over get_town or nearby_places, nor when to skip it. Usage is only implied by the filter list.

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