Skip to main content
Glama

Alternative routes

mb_alternative_routes
Read-onlyIdempotent

Find alternative routes when direct trains are full or costly: one-change train/bus trips and nearby train, bus, and flight options for your origin, destination, and date.

Instructions

Alternatives when direct trains are full or dear: trips with one change, and nearby train, bus and flight routes.

with_one_change: up to 7 journeys with one change, any mix of train and bus (bus+bus too; price per adult, total duration, wait at the change); a direct bus in nearby_bus_routes can be cheaper and faster. nearby_*: routes from or to stations, bus cities and airports near the two stations, with the cheapest price where known (classes_listed is the API's raw count, not the bookable classes); pass their ids to mb_search_trains, mb_search_buses or mb_search_flights. Seat counts here can be cached: confirm with a search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesTravel date YYYY-MM-DD, e.g. '2026-10-14'. Sales open about 18 days ahead.
originYesTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran) or 191 (Mashhad).
destinationYesTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran) or 191 (Mashhad).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description adds real behavioral context: seat counts may be cached and should be confirmed with a search, and classes_listed is the API's raw count rather than bookable classes. It does not mention rate limits, result caps beyond 'up to 7', or freshness of prices beyond the caching note.

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?

Front-loaded with the core purpose, then organized by output section (with_one_change, nearby_*). It is dense and slightly run-on in the middle, but every sentence carries information; no filler.

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 an output schema present, the description need not enumerate return fields, yet it usefully explains what each section means and how to act on the ids. Coverage of caveats (cached seats, raw class counts) is good; a note on result freshness or pagination would make it complete.

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% for all three parameters, so origin/destination/date semantics are fully documented in the schema. The description adds no input-parameter detail of its own (its content is about output sections), so the baseline 3 applies.

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 opening sentence states a specific purpose: finding alternative journeys (one-change trips, nearby train/bus/flight routes) when direct trains are full or expensive. The named result sections (with_one_change, nearby_*) make it easy to distinguish from mb_search_trains and mb_search_buses, which it explicitly points to as follow-ups.

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 clearly states the trigger condition ('when direct trains are full or dear') and routes the agent onward ('pass their ids to mb_search_trains, mb_search_buses or mb_search_flights'), plus a comparative hint that a direct bus may be cheaper/faster. There is no explicit statement of when *not* to use it (e.g., when a direct train exists and is available), so it falls just short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.