Skip to main content
Glama

Status Lark

Booking-class letters for a cabin or fare brand

resolve_booking_class
Read-only

Helps turn a fare as sold (carrier, cabin, brand name) into the input the earning rules key on. Returns the airline's own published letters per cabin where Status Lark holds them (else the representative letters its calculators assume), the fare brands the engine recognises for that carrier, and whether the carrier's own programme needs the fare paid. Where fareTypes is returned, the fare type printed on the booking confirmation IS the input that carrier's own programme keys on — British Airways prices its own metal on cabin and fare type and never on the letter, and so (since 0.9.0, migration 330) does Air Canada's Aeroplan: Basic, Standard, Flex, Comfort, Latitude, Premium Economy, Business — so pass it as fareBrand and the letter becomes optional. When calculating, pass cabin when you know it; add fareBrand or bookingClass when the confirmation shows one — a cabin on its own is answered with that cabin's published range rather than an assumed letter. The letter on the ticket or fare rules always governs; treat the answer as a guide and say so.

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": {
      "carrier": "<carrier>"
    },
    "name": "resolve_booking_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
cabinNo
carrierYesMarketing carrier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

readOnlyHint already establishes the safe-read profile, and the description adds meaningful context beyond it: the fallback from the airline's own published letters to representative letters its calculators assume, version-specific behaviour (0.9.0, migration 330), and the caveat that the ticketed letter governs. That is genuine disclosure of provenance and confidence for a lookup tool. The value is diluted by describing inputs the tool does not appear to accept.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and return value are front-loaded in the first two sentences, which is the right structure. The middle sentence then sprawls through British Airways pricing practice and a full Air Canada fare-brand list, detail that does not help an agent choose or shape a call, and contributes to the parameter/schema drift.

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

Completeness3/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 correctly takes on the burden of describing return values, and it does so well (letters, fare types, paid-fare flag). But for a two-parameter lookup tool it is not fully coherent: it advertises arguments the schema forbids, leaving an agent unsure which inputs are actually valid.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents only `carrier` ("Marketing carrier") and an enum-bound `cabin`, giving 50% coverage, so the description should compensate for `cabin` — and it partly does by explaining what a cabin-only answer means. However, it repeatedly instructs the agent to pass `fareBrand` and `bookingClass`, neither of which exists in the schema, which sets `additionalProperties: false`; an agent following the text would emit an invalid call.

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 opens with a concrete verb-and-resource framing: it turns a fare as sold (carrier, cabin, brand) into the input that earning rules key on, and enumerates its three outputs (published letters, recognised fare brands, whether fare must be paid). That is more specific than a restated name and separates it from earning/redemption siblings. It stops short of naming an alternative tool for the case where a booking class is already known.

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?

It gives direct call guidance: pass `cabin` when known, add a brand or letter when the confirmation shows one, and warns that a cabin alone returns a published range rather than an assumed letter. It also sets expectation that the letter on the ticket governs and the answer should be presented as a guide. No explicit exclusions or named alternative tools are given, keeping it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources