Skip to main content
Glama

Search bus trips

bus_search
Read-onlyIdempotent

Search intercity bus trips between two cities on a given date, showing times, companies, prices, free seats, and terminals.

Instructions

List bus trips between two cities on one day: time, company, bus type, price in Toman, free seats, terminals.

One block per provider with the trip count and the price range. Trips with no free seat are left out. The trip id feeds bus_trip.

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

Input Schema

NameRequiredDescriptionDefault
dateYesTravel day: Jalali 1405/08/28 or Gregorian 2026-11-19, or today / tomorrow (Tehran time).
sortNoOrder of the trips.time
limitNoTrips per provider.
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

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds meaningful behavior beyond that: results are grouped into one block per provider with trip count and price range, trips without free seats are omitted, prices are in Toman, and the trip id links to bus_trip. It stops short of discussing rate limits, auth, or pagination.

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?

The description is four short sentences with the core purpose front-loaded and zero filler. Each sentence earns its place: the first states scope and fields, the second describes grouping, the third states an exclusion, and the fourth links the id to bus_trip.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the burden of explaining returns, and it does so adequately by naming the fields, provider grouping, trip counts, and price range. It also explains the free-seat exclusion and the trip-id handoff, leaving nothing essential missing for a read-only search tool whose safety profile is already covered by annotations.

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 baseline is 3; the schema already documents date formats, sort, limit, provider, vip_only, and city inputs. The description reinforces that the search is for one day and that free-seat availability is filtered, but it adds little parameter-level detail beyond what the schema already provides.

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 description states a specific verb and resource — list bus trips between two cities on one day — and enumerates the returned fields (time, company, bus type, price, free seats, terminals). It also distinguishes its role from the sibling bus_trip by noting that the trip id feeds bus_trip, so an agent can tell what this tool is for without opening the schema.

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?

The description establishes the usage context (two cities, one day) and the output shape, but gives no explicit when-to-use versus when-not-to-use guidance and does not name an alternative such as bus_cheapest. The exclusion of trips with no free seat is a behavioral filter rather than a routing rule, so usage guidance remains implied.

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