Skip to main content
Glama

Bus tickets

al_buses
Read-onlyIdempotent

Search intercity bus tickets between two Iranian cities for a specific date, returning companies, bus types, departure times, prices in toman, and available seats.

Instructions

Search intercity bus tickets between two Iranian cities on one day: company, bus type, times, price, seats.

Toman per adult. No arrival time is available. from_terminal matters in cities with several terminals.

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

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian 2026-11-11 or Jalali 1405-08-20.
sortNoSort order.departure
limitNoMax results.
originYesCity name (تهران, Mashhad) or code (THR); see al_cities.
destinationYesCity name (تهران, Mashhad) or code (THR); see al_cities.
only_availableNoHide buses with no free seat.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / 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 / limit / description
      Previous value: -"Maximum number of results."New value: +"Max results."
    • 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."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the results."New value: +"Sort order."
  2. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, open-world behavior, so the description is not obligated to restate safety. It does add genuinely new behavioral context: prices are 'Toman per adult' and 'No arrival time is available', which pre-empts an agent looking for a field that will never appear. It stops short of noting pagination or whether results span all companies at once.

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?

Three compact sentences, with the core action front-loaded ahead of the unit and limitation notes. The trailing '`from_terminal`' sentence is terse to the point of ambiguity — it names an identifier that appears nowhere in the schema — but it costs little space.

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 no output schema, the description usefully enumerates what comes back (company, bus type, times, price, seats) and flags the absent arrival time, which is exactly the kind of gap-filling needed. The dangling `from_terminal` reference is the one loose end, since an agent cannot act on a field it cannot pass.

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 origin, destination, date, sort, limit, and only_available are all already documented with formats and defaults; baseline 3 applies. The description adds no syntax or constraint detail beyond the schema, and the one parameter-like reference it does make ('`from_terminal`') does not exist in the input schema, so it clarifies nothing actionable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Search intercity bus tickets between two Iranian cities on one day') and enumerates the returned fields (company, bus type, times, price, seats). It implicitly separates the tool from al_trains and al_flights by naming the mode, but never names the closest sibling al_buses_cheapest, so the cheapest-vs-full distinction is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the phrase 'between two Iranian cities on one day'; there is no statement of when to prefer al_buses_cheapest, al_bus_seats, or a train/flight sibling. The note that '`from_terminal` matters in cities with several terminals' is a useful invocation hint, but it is a fragment rather than explicit when/when-not guidance.

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