Skip to main content
Glama

Train price calendar

mb_train_price_calendar
Read-onlyIdempotent

Find the minimum daily train ticket price for a route with free seats to identify the next bookable travel day.

Instructions

Cheapest train ticket per day (one adult) for a route, only days with free seats.

Use to find the cheapest or the next bookable day, then mb_search_trains for that day. Train sales open only about 18 days ahead, so later days are missing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to cover.
quotaNoSeat quota: general (families, mixed), men only, women only, or car transport.general
seatsNoSeats needed; days without that many free seats are left out.
originYesTrain station id from mb_find_place(mode='train'), e.g. 1 (Tehran) or 191 (Mashhad).
start_dateNoFirst day YYYY-MM-DD, e.g. '2026-10-10'; default today.
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.2/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 safety is covered. The description adds genuine behavioral context beyond them: rows are omitted on days without enough free seats, and the window is truncated because sales open only ~18 days ahead, so later days will be missing. The one gap is currency/price units and whether results are cached.

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 short sentences, all front-loaded: what it returns, how to use it, and the availability caveat. Every sentence earns its place with no repetition of schema or annotation content.

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?

An output schema exists, so return structure need not be explained, and the description supplies the important domain caveats (free-seat filtering, ~18-day sales horizon). What is missing is minor: price currency/units and whether the calendar is cached or live.

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 the schema already documents days, quota, seats, start_date, origin and destination, including the mb_find_place(mode='train') id hint. The description only adds '(one adult)', which is marginal and slightly at odds with the seats parameter allowing up to 10. Baseline 3 is correct.

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+resource+scope: the cheapest train ticket per day for a route, one adult, filtered to days with free seats. It is immediately distinguishable from mb_train_price (single price) and mb_search_trains (actual bookings) by the per-day calendar framing.

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?

Explicitly routes the agent: 'Use to find the cheapest or the next bookable day, then mb_search_trains for that day.' That names the follow-up tool and the condition that triggers it. It stops short of stating when NOT to use it (e.g. versus mb_train_price for a single departure), so it is strong but not fully closed.

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