Skip to main content
Glama

Bus seat map

al_bus_seats
Read-onlyIdempotent

Show free seats on a specific bus with status counts and available seat numbers, including row/column layout, without booking.

Instructions

Show which seats are free on one bus: counts per status and the free seat numbers (no booking).

Use after al_buses. layout gives each free seat's row/column (columns 1-2 left of the aisle, 4-5 right).

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>",
      "departure_time": "<departure_time>"
    },
    "name": "al_bus_seats"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian 2026-11-11 or Jalali 1405-08-20.
originYesCity name (تهران, Mashhad) or code (THR); see al_cities.
companyNoPart of the company name, when several buses leave at that time.
destinationYesCity name (تهران, Mashhad) or code (THR); see al_cities.
departure_timeYesHH:MM from al_buses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.0
    • changedInput schema / properties / company / description
      Previous value: -"Part of the company name, to pick one when several buses leave at that time."New value: +"Part of the company name, when several buses leave at that time."
    • 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 / departure_time / description
      Previous value: -"Departure time of the bus from al_buses, HH:MM."New value: +"HH:MM from al_buses."
    • 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.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 the safety profile is covered. The description adds real behavioral context beyond that: it is informational only ('no booking') and it explains the layout convention (columns 1-2 left of aisle, 4-5 right), which is otherwise undiscoverable. It does not mention availability staleness, caching, or rate limits.

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 tight sentences with the capability and the 'no booking' caveat front-loaded, followed by the prerequisite and the layout legend. Nothing is redundant.

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?

There is no output schema, and the description compensates by naming the return content (counts per status, free seat numbers, per-seat row/column). The reference to `layout` is slightly ambiguous since it is not an input parameter, which may briefly confuse an agent about whether it is an option or a response field.

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 coverage is 100% with detailed per-field descriptions (date formats, city/code, company disambiguation, HH:MM from al_buses), so the schema already does the heavy lifting. The description only implies that the parameters identify 'one bus' and that values should come from al_buses; it adds no format or constraint detail beyond the schema. Baseline 3 applies.

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 and resource ('show which seats are free on one bus') and names the exact outputs ('counts per status and the free seat numbers'), plus the negative scope '(no booking)'. An agent can tell this apart from al_buses or al_buses_cheapest without opening a schema.

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?

Explicit sequencing guidance: 'Use after al_buses', which tells the agent this depends on a prior lookup to obtain date/time/route. It does not state when to skip this tool or which sibling to prefer when seat counts are irrelevant, so it falls short of a 5.

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