Skip to main content
Glama

Find Routes Between Stops

find_routes_between
Read-onlyIdempotent

Lists the direct routes (no transfer) from one place to another: which stop to board, where to get off, the direction's destination, stops in between, and the walk at each end — best first, walking counted. Use when the user asks how to get from A to B, or which bus/tram goes from one place to another. Each end covers every stop within a 300 m walk of the one given, since a line's two directions often stop on opposite sides of a street under different names; board_stop says where to actually wait. An empty options list means no direct route: a transfer is needed. Requires numeric stop IDs; get them with search_stops or get_stops_around_location first. Follow up with get_stop_realtime on board_stop for live departures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_stop_idYesStop ID where the trip ends.
from_stop_idYesStop ID where the trip starts.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
viewYes
ui_blocksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint, idempotentHint), the description discloses meaningful behavioral details: each endpoint covers stops within a 300 m walk, board_stop indicates where to actually wait due to directional naming differences, and an empty options list signals the need for a transfer. It also clarifies ordering ('best first, walking counted'), adding real context beyond the safety hints.

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?

The description is information-dense without redundancy: it front-loads the primary function, then covers use case, behavior details, edge cases, prerequisites, and follow-up in a logical flow. Every sentence contributes a distinct piece of guidance.

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?

Given the tool's complexityaint and existing output schema, the description covers all needed aspects: purpose, when to use, parameter acquisition, endpoint proximity behavior, empty-result meaning, and recommended follow-up. Nothing essential for correct invocation is missing.

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, but the description adds practical semantics by telling the agent to obtain numeric stop IDs via search_stops or get_stops_around_location, and by explaining that each endpoint covers a radius of 300 m. This enriches the meaning of from_stop_id and to_stop_id beyond the schema's simple 'Stop ID' descriptions.

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 states a specific verb and resource ('Lists the direct routes (no transfer) from one place to another') and enumerates the returned details (board stop, get off stop, destination, stops in between, walking). It also differentiates from siblings by explicitly limiting to direct routes and defining the use case as 'how to get from A to B' or 'which bus/tram goes from one place to another'.

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?

It provides an explicit trigger: 'Use when the user asks how to get from A to B, or which bus/tram goes from one place to another.' It also gives prerequisites ('Requires numeric stop IDs; get them with search_stops or get_stops_around_location first') and a follow-up action ('Follow up with get_stop_realtime on board_stop for live departures'). It lacks an explicit when-not for transfers, though the empty-options behavior implies it.

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.