Skip to main content
Glama

Find crossings near a point

find_crossings_near
Read-onlyIdempotent

Find US railroad crossings near a point. Give a latitude and longitude, and a distance of up to 2 miles (1 mile if left out). Returns up to the 25 closest crossings, each with its crossing ID, road, city, equipment, daily trains, distance in miles and a link to its page.

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "find_crossings_near"
  }
}

Input Schema

NameRequiredDescriptionDefault
latitudeYesLatitude in decimal degrees, like 41.8781.
longitudeYesLongitude in decimal degrees, like -87.6298.
radius_milesNoHow far to look, in miles. Up to 2; 1 if left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds meaningful operational detail beyond them: the 2-mile hard cap, the 1-mile default, the 25-result limit, and closest-first ordering. It does not address error behavior for out-of-range coordinates, but the added constraints are substantive.

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?

Two dense sentences that front-load the purpose, then the required inputs, then the result shape. Every clause carries information; nothing is padded or repeated.

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?

With no output schema, the description usefully enumerates the returned fields (crossing ID, road, city, equipment, daily trains, distance, link), which is exactly what the agent needs. Only edge-case behavior (invalid coordinates, empty results) is unaddressed.

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 description coverage is 100%, so all three parameters are already documented, including the '1 if left out' default which the description merely repeats. No new syntax, format, or unit guidance is added beyond the 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?

States a specific verb and resource with scope: 'Find US railroad crossings near a point.' This clearly distinguishes it from get_crossing (single crossing by ID) and the summary siblings, since proximity search is a distinct operation.

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?

Gives clear invocation context ('Give a latitude and longitude, and a distance') and documents the default radius behavior. However, it never names the sibling alternative get_crossing for looking up a known crossing ID, so the routing guidance is implicit rather than explicit.

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