Skip to main content
Glama

Cheapest bus per day

al_buses_cheapest
Read-onlyIdempotent

Compare daily bus fares and available bus counts between two cities over a short date range, with per-adult prices in Toman for buses that still have free seats.

Instructions

List the lowest bus price and the number of buses for each day from a start date (the site has no bus calendar).

One search per day, so keep days small. Toman per adult, buses with a free seat only.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "date": "<date>"
    },
    "name": "al_buses_cheapest"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian 2026-11-11 or Jalali 1405-08-20.
daysNoDays to check from `date`.
originYesCity name (تهران, Mashhad) or code (THR); see al_cities.
destinationYesCity name (تهران, Mashhad) or code (THR); see al_cities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • changedInput schema / properties / date / description
      Previous value: -"Travel date, Gregorian 2026-11-11 or Jalali 1405-08-20 (the year tells which)."New value: +"Gregorian 2026-11-11 or Jalali 1405-08-20."
    • changedInput schema / properties / days / description
      Previous value: -"How many days to check, starting at `date`."New value: +"Days to check from `date`."
    • changedInput schema / properties / destination / description
      Previous value: -"City name in Persian or English (تهران, Mashhad) or its code (THR, MHD); al_cities lists them."New value: +"City name (تهران, Mashhad) or code (THR); see al_cities."
    • changedInput schema / properties / origin / description
      Previous value: -"City name in Persian or English (تهران, Mashhad) or its code (THR, MHD); al_cities lists them."New value: +"City name (تهران, Mashhad) or code (THR); see al_cities."
  2. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: one upstream search is issued per day (a cost/latency trait), the 'no bus calendar' origin of the per-day pattern, currency unit (Toman per adult), and that only buses with a free seat are counted.

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 short sentences plus a scoping parenthetical, with the output shape front-loaded and the cost warning immediately after. No redundant restatement of the name or the schema.

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?

For a 4-parameter read-only tool with no output schema, it describes both return fields (lowest price, bus count) and their units, plus the filtering rule. It stops short of stating behavior when no buses exist on a given day, which would complete the picture.

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 meaning the schema cannot: each unit of `days` triggers a separate search, making the parameter a cost knob rather than a plain range. It also clarifies that results are priced per adult in Toman, giving `price` semantics.

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 statement 'List the lowest bus price and the number of buses for each day from a start date' gives a specific verb (List), resource (bus price/count), and output shape (per-day). The parenthetical '(the site has no bus calendar)' clarifies why per-day enumeration exists, which distinguishes it from the bulk listing of al_buses and from al_bus_seats.

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 says 'One search per day, so keep `days` small,' which is concrete cost-driven guidance for choosing parameter values. It does not explicitly compare itself to al_buses or al_bus_seats, so the agent must infer that this is the price-comparison variant rather than the detail variant.

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