Skip to main content
Glama

Nearest place of a category

yatmo_get_nearest_by_category
Read-onlyIdempotent

Find the nearest point of interest by category, such as school, supermarket, or train station, and get its distance and travel time from a latitude and longitude.

Instructions

Returns the single nearest point of interest of a given category (e.g. the nearest school) with distance and travel time. Categories: school, nursery, supermarket, public_transport, train_station, motorway.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryYesCountry code (market), e.g. BE, FR, NL
categoryYesCategory token, e.g. school, nursery, supermarket, train_station, motorway, public_transport
languageYesLanguage code, e.g. fr, en, nl, de
latitudeYesLatitude, -90..90
longitudeYesLongitude, -180..180

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world and non-destructive behavior, so the safety profile is covered. The description adds genuinely useful context beyond them: the result is a single point and it includes distance and travel time, which matters because there is no output schema.

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?

Two tight sentences with the primary behavior front-loaded and the category list last. Minor redundancy: the category values repeat what is already in the category parameter description.

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?

For a five-parameter required-input lookup with no output schema, the description usefully discloses that the response carries distance and travel time. It does not explain how language/country affect results, but nothing critical to calling it correctly is missing.

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 all five parameters including units and ranges are already documented in the schema. The description's category list largely duplicates the schema's category description and adds no format or semantics beyond it, so the baseline 3 applies.

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?

States a specific verb and resource with a clear scope qualifier: 'the single nearest point of interest of a given category.' The word 'single' implicitly separates it from the plural sibling yatmo_get_nearby_pois, but no sibling is named explicitly.

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?

The category enumeration hints at when the tool applies, and 'single nearest' suggests a one-result use case, but there is no explicit guidance on when to choose this over yatmo_get_nearby_pois or yatmo_get_accessibility_profile, nor any stated preconditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.