Skip to main content
Glama

Mind the Gates — UK level crossings

Crossings near a point

crossings_near
Read-onlyIdempotent

Nearest listed level crossings to a point, closest first. Returns one line per crossing — distance in MILES, then name, type, region and a status URL ending .md. Distance is straight-line (great circle) between the point and the crossing, NOT distance by road or along the railway: it answers 'which crossings are near this place', not 'which will this train reach next'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude in WGS84 decimal degrees, e.g. 51.3958. Positive is north.
lonYesLongitude in WGS84 decimal degrees, e.g. -1.2637. NEGATIVE is west, which is most of Great Britain.
limitNoHow many crossings to return, nearest first; clamped to 1-25.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint as true. The description adds valuable behavioral context by explaining the distance calculation is straight-line great circle (not road/rail) and describes the response format. No contradictions with annotations.

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, no wasted words. First sentence gives purpose and output summary, second clarifies distance metric, third clarifies use case. Information is front-loaded and every sentence earns its place.

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 covers what each result line contains. Parameters are fully documented in schema. Annotations cover safety. Missing details about error handling or timeouts, but given the tool's simplicity, it is fairly complete.

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%, with well-described parameters (lat, lon, limit). The description adds extra meaning: distance is in MILES and status URL ends in .md, which are not in schema. However, since schema already covers parameters well, the added value is moderate.

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 returns the nearest listed level crossings to a point, sorted closest first, and specifies the output fields (distance in miles, name, type, region, status URL). It effectively distinguishes from sibling tools like busiest_today and crossing_status by focusing on proximity.

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?

Explicitly tells when to use ('which crossings are near this place') and when not to use ('NOT distance by road or along the railway'). It also contrasts with a potential alternative ('not which will this train reach next'). Provides clear, actionable guidance.

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.

TDQS

A4.6/5.0
Disambiguation5/5

Each tool performs a distinct function: busiest_today gives predicted delays, crossings_near finds nearby crossings, crossing_status provides live status for one crossing, and list_crossings searches for crossings. No overlap in purpose.

Naming Consistency4/5

Tools use snake_case and mostly follow a verb_noun or descriptive pattern (list_crossings, crossing_status). 'busiest_today' and 'crossings_near' deviate slightly but remain clear and consistent overall.

Tool Count4/5

Four tools is appropriate for a focused domain like UK level crossings. It covers key operations without being too sparse or overwhelming.

Completeness4/5

The server covers main use cases: search, list busy crossings, find nearby crossings, and get live status. Missing features like detailed static crossing info or historical data, but not essential given the real-time focus.

Resources