Skip to main content
Glama
terranode-co

@terranode-co/mcp-server

Official
by terranode-co

find_nearest

Find the nearest geographic features to a coordinate, sorted by distance. Use for proximity queries and reverse lookups to identify containing features and neighbors.

Instructions

Find the nearest counties, districts, ZIP codes, or other features to a coordinate. Use this for proximity queries, finding what's nearby, or ranking features by distance. Returns features sorted by distance (meters and miles), measured to feature boundary. Also works as a reverse lookup — returns the containing feature (distance=0) plus neighbors. Requires latitude, longitude, and a dataset id (UUID) from list_datasets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude in decimal degrees (WGS84)
lngYesLongitude in decimal degrees (WGS84)
datasetYesDataset id (UUID) from list_datasets
nNoNumber of nearest features to return (max 20, default 1)
radiusNoMaximum search radius in meters (max 500000)
Behavior4/5

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

With no annotations, the description discloses behavior: returns features sorted by distance (meters and miles), measured to feature boundary, and includes reverse lookup (containing feature with distance=0). No side effects or auth needs mentioned, but adequate for a read-only tool.

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, front-loaded with purpose, no wasted words. Every sentence adds value.

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?

No output schema, but description explains return format (features sorted by distance, in meters and miles). Also mentions reverse lookup behavior. Almost complete; could mention return structure but sufficient for a simple tool.

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 100%, and the description adds context: explains that dataset UUID comes from list_datasets, and mentions max values for n (20) and radius (500000) which are already in schema. Provides meaning beyond schema.

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?

Clearly states the tool finds nearest features (counties, districts, ZIP codes) to a coordinate, with a specific verb 'find' and resource 'nearest features'. Distinguishes from siblings by mentioning proximity queries and reverse lookup.

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?

Explicitly says use for proximity queries, finding what's nearby, ranking by distance, and reverse lookup. Does not explicitly state when not to use or compare to sibling tools like calculate_distance, but the description provides good context.

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/terranode-co/mcp-server-terranode'

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