Skip to main content
Glama

Distance to Coast by Underwriters Technologies

Get the distance from a point to the coast

get_distance_to_coast
Read-onlyIdempotent

Returns the straight-line distance in miles from a point to the nearest coastline of the chosen model, and the nearest coast point. undtec-coastal is made for insurance underwriting.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "get_distance_to_coast"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees (WGS 84).
lonYesLongitude in decimal degrees (WGS 84), negative in the western hemisphere.
modelNoCoastline model.undtec-coastal

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds useful behavior beyond that: results are in miles, measured as straight-line distance, and a nearest-coast-point is returned alongside the distance. It omits accuracy/error characteristics and how results differ across the five models.

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 short sentences with the core return value front-loaded and no filler. The second sentence is somewhat abrupt and narrowly scoped to one model, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 some of the burden of explaining returns and does so at a high level (miles, nearest coast point) without field names or structure. The main completeness gap is the absence of any guidance on how the five coastline models differ, which is the key decision an agent must make for this tool.

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 lat/lon are fully documented and the baseline is 3. The description adds a little meaning for the model parameter by tying undtec-coastal to insurance underwriting, but leaves the other four enum values (undtec-ocean, noaa, osm, gshhg) completely undifferentiated despite model choice materially affecting the result.

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?

The description states a specific verb+resource: it returns the straight-line distance in miles from a point to the nearest coastline, plus the nearest coast point. Units and return content are explicit. It does not name a sibling to contrast with, but the subject matter (coastal proximity) is clearly distinct from get_flood_zone or get_wildfire_hazard.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given relative to the other hazard tools. The only usage hint is 'undtec-coastal is made for insurance underwriting', which points at a use case for one model value but says nothing about when this tool is the right choice over alternatives.

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