Skip to main content
Glama

nearest_historical_city

Find historical cities nearest to a location, filtered by year and type such as capital or trade hub. Returns results sorted by distance.

Instructions

Trova le città storiche più vicine a una coppia di coordinate (latitudine, longitudine), opzionalmente filtrate per anno di attività e tipo (CAPITAL, TRADE_HUB, ecc.). Calcola la distanza haversine client-side e ordina per distanza crescente. Usa per domande tipo 'che città c'erano vicino a 41.9, 12.5 nel 100 d.C.?' (città vicino Roma) o 'qual è il trade hub più vicino a Venezia nel 1400?'. Nota: questo tool trova CITTÀ storiche (dataset separato da GeoEntity) — per capitali di imperi/regni usa nearby_entities.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitudine in gradi decimali (WGS84).
lonYesLongitudine in gradi decimali (WGS84).
yearNoAnno (intero). Anni negativi rappresentano date a.C. Esempi: -300 = 300 a.C., 476 = 476 d.C. Filtra città attive (year_founded <= anno <= year_abandoned).
limitNoNumero massimo di città da ritornare (default: 5).
city_typeNoCAPITAL / TRADE_HUB / RELIGIOUS_CENTER / FORTRESS / PORT / ACADEMIC_CENTER / INDUSTRIAL_CENTER / MULTI_PURPOSE / OTHER.
max_candidatesNoNumero massimo di candidati da scaricare prima del sort client-side (default: 500).
Behavior4/5

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

Given no annotations, the description discloses key behaviors: haversine distance calculation, client-side sorting, year filtering based on founded/abandoned dates, and use of a separate dataset. However, it does not describe the output structure (e.g., fields returned) or error handling, which would enhance transparency.

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?

The description is concise, well-structured, and front-loaded with the core purpose. Every sentence adds value: core function, examples, and sibling differentiation. No waste.

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?

Given no output schema and no annotations, the description covers the tool's purpose, usage, and key behaviors. It lacks details on the exact return format (e.g., what fields are in each city object) but is sufficient for an agent to use the tool effectively.

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%, but the description adds context such as 'client-side sort' for max_candidates and example values. This provides more meaning than the schema alone, justifying a score above baseline.

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 clearly states the tool finds nearest historical cities to coordinates, with optional filters. It distinguishes from the sibling tool 'nearby_entities' by specifying that this tool is for historical cities, not capitals of empires/kingdoms.

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?

The description provides explicit example queries and states when to use this tool vs. 'nearby_entities'. It also explains the filtering by year and city type, giving clear context for use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soil911/AtlasPI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server