Skip to main content
Glama

Lviv Public Transport

Get Stops Around Location

get_stops_around_location
Read-onlyIdempotent

Finds stops near a geographic point, returning each stop's numeric ID, name, coordinates, walking distance, and the routes serving it. Use this as the first step when the user gives an address or coordinates and you need stop IDs for get_stop_realtime or find_routes_between. Use search_stops instead when the user gives a stop name. Default radius is 500 m (about a 6-minute walk), enough in the city centre; widen it to 1 000–3 000 m in suburbs or rural areas where stops are sparse.

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": "get_stops_around_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
latitudeYesDecimal latitude of the search centre, WGS84 (e.g. 49.842 for central Lviv).
longitudeYesDecimal longitude of the search centre, WGS84 (e.g. 24.031 for central Lviv).
radius_metersNoSearch radius in metres (50–3000, default 500). Use ~300 for a single dense intersection, 1000–3000 for suburban or rural areas.

Output Schema

NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered; the description adds non-obvious context such as the default radius, the walking-time interpretation, and the fact that results carry route associations. It stops short of noting result limits, pagination, or what an empty result means in a sparse area, which are the remaining behavioral gaps for an open-world lookup.

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, all load-bearing: purpose and return fields first, then routing to alternatives and downstream tools, then operational radius advice. Purpose is front-loaded and no sentence merely restates the title or schema.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only lookup with an output schema and full annotation coverage, the description supplies everything an agent needs: trigger condition, sibling disambiguation, downstream use of the returned IDs, and sensible parameter defaults. Return-value explanation is correctly left to the output schema.

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%, so the baseline is 3; the description earns an extra point by translating radius values into practical meaning ('500 m about a 6-minute walk', widening to 1 000–3 000 m in sparse areas) and by tying latitude/longitude to the address-vs-coordinates entry path. Some of this duplicates the schema's own radius guidance, so it is helpful rather than essential.

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 opens with a specific verb and resource ('Finds stops near a geographic point') and enumerates the return shape (numeric ID, name, coordinates, walking distance, serving routes). It explicitly distinguishes itself from search_stops by input type (address/coordinates vs. stop name), which an agent can act on without opening either schema.

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?

It states the exact workflow position ('first step when the user gives an address or coordinates'), names the downstream tools that consume the returned stop IDs (get_stop_realtime, find_routes_between), and names the alternative (search_stops) with the condition that selects it. Radius selection guidance by setting (city centre vs. suburbs/rural) removes further guesswork.

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.