Skip to main content
Glama

Bus trip seats and refund rules

bus_trip
Read-onlyIdempotent

Retrieve a trip’s seat map summary and refund penalties, including free seats and seats occupied by men or women, to check availability before booking.

Instructions

Seat map summary and refund penalties of one trip: free seat numbers, seats taken by men or women.

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": {
      "trip_id": "<trip_id>",
      "destination": "<destination>"
    },
    "name": "bus_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idYesTrip id from bus_search or bus_cheapest.
providerNoThe provider the trip id came from.safar724
destinationYesDestination city, Persian or English, e.g. اصفهان, Isfahan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint, and non-destructive behavior, so the safety profile is covered. The description adds useful return-content context—seat availability, gender-separated occupancy, and refund penalties—but it does not describe output format, error conditions, 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?

It is a single front-loaded sentence with no redundant wording. The colon-separated list efficiently conveys the returned data.

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 read-only retrieval tool with rich annotations and full schema coverage, the description supplies the key return-value summary that an absent output schema would otherwise leave missing. It is largely complete, though it stops short of specifying refund-penalty details or output structure.

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 all three parameters are documented in the schema, including trip_id provenance and destination formatting. The description adds no parameter-level meaning beyond what the schema already provides.

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 identifies a specific resource and scope: seat map summary and refund penalties for one trip, including free seat numbers and gender-segregated occupied seats. It clearly distinguishes this from trip-search siblings by focusing on a single trip's seat and refund data, though it does not explicitly name alternatives.

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

Usage Guidelines2/5

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

The description contains no explicit when-to-use guidance, exclusions, or alternative tool routing. The only sequencing hint appears in the schema's trip_id description ('from bus_search or bus_cheapest'), not in the description itself, so an agent must infer that this is a follow-up call.

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