Skip to main content
Glama

Find nearest public toilets

find_nearest_toilets
Read-onlyIdempotent

Find the public toilets nearest to a set of coordinates, using data from the National Public Toilet Map. Useful for finding the closest toilet, the closest accessible toilet or the nearest RV dump point. Returns toilets sorted by distance, each with name, address, distance, opening hours, facilities (wheelchair access, baby change, RV dump point, showers, drinking water and more) and a directions link. If none fall inside radius_km, the closest ones are still returned.

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "find_nearest_toilets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (default 5, max 25).
latitudeYesLatitude of the search location.
longitudeYesLongitude of the search location.
radius_kmNoSearch radius in km (default 15). If none are within radius, the closest are returned anyway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses a real behavioral rule: if nothing falls inside radius_km the closest results are still returned. It also states the sort order and enumerates the returned fields (name, address, distance, hours, facilities, directions link).

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

Conciseness5/5

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

Three sentences, each earning its place: purpose/source first, use cases second, return contract and edge-case behavior last. No filler or repetition of the title.

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?

With no output schema, the description carries the burden of explaining return values, and it does so thoroughly (sorted by distance, field list). Combined with full parameter coverage and explicit fallback behavior, 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter already carries a description including the radius fallback rule. The description restates the radius fallback but adds no syntax, format, or default detail beyond the schema, so the baseline 3 applies.

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?

The description opens with a specific verb+resource ('Find the public toilets nearest to a set of coordinates') and names the data source (National Public Toilet Map). It also scopes the use cases (closest toilet, accessible toilet, RV dump point), which no sibling tool overlaps with.

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 usage context by naming three concrete search intents (closest toilet, accessible toilet, RV dump point). It does not state when-not to use it or point at an alternative, but the sibling list contains no competing toilet/POI lookup tool, so the omission is minor.

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