Skip to main content
Glama

Cheapest bus tickets

bus_cheapest
Read-onlyIdempotent

Compare bus providers to find low-cost trips between two cities on a given day, sorted by price in Toman.

Instructions

Cheapest bus trips between two cities on one day, merged across providers and sorted by price in Toman.

Each trip carries its provider. A provider that failed is listed under errors.

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

Input Schema

NameRequiredDescriptionDefault
dateYesTravel day: Jalali 1405/08/28 or Gregorian 2026-11-19, or today / tomorrow (Tehran time).
limitNoHow many trips.
originYesOrigin city, Persian or English, e.g. تهران, Tehran, or a bus_cities code.
providerNoall, or one ticket site.all
vip_onlyNoOnly trips whose bus type says VIP.
destinationYesDestination city, Persian or English, e.g. اصفهان, Isfahan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: results are merged across providers, prices are denominated in Toman, each trip exposes its provider, and failed providers surface under `errors`. That last point is the most valuable disclosure, since it tells the agent a partial result is not necessarily an empty one.

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, front-loaded with what the tool returns and how it is ordered, followed by the two result-shape facts an agent needs. No filler, no restatement of the title.

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 six-parameter read tool with a fully described schema and no output schema, the definition covers the essentials, including the partial-failure `errors` field, which is unusual to disclose and valuable. It stops short of describing the other fields on a trip object or whether price is per passenger, a minor gap.

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%, including date formats, limit bounds, provider enum and vip_only, so the schema carries the parameter burden and a baseline 3 applies. The description adds only the currency unit (Toman) and the merging semantics of the `provider` filter; it does not clarify the origin/destination code-vs-name resolution beyond what the schema already says.

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 states a specific verb and resource ('Cheapest bus trips between two cities on one day') plus the defining mechanics: merged across providers and sorted by price in Toman. It implicitly separates itself from bus_search by emphasizing the cheapest/sorted-by-price behavior, but never names the sibling to make the distinction explicit.

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: an agent can infer this is the tool for price-comparison queries from 'cheapest' and 'sorted by price'. There is no explicit when-to-use or when-not-to-use guidance and no reference to bus_search or bus_trip as alternatives, which matters given four sibling bus tools.

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