Skip to main content
Glama

Status Lark

Where to credit a flight itinerary

credit_options
Read-only

For an itinerary of one or more flight segments, computes the status credits every eligible loyalty programme would award and ranks them by Lark Score. Optionally takes the member's positions (balance in the current window, held tier) in the programmes they hold and adds what the trip does to each gap. Each segment may carry travelDate (the flight date): the figure is then for the rules in force on that day, and a blank date means today's rules. With a date the reply repeats, per segment, coverage (how far Status Lark can vouch for the rules that day: repeat its text) and, where the figure depends on when the flight was booked, bookedSplit (both figures; ask for bookedDate only when its ask is true). Never guess a date. For a programme whose qualification year Status Lark has read (qualificationYear in programme_ladder), Lark Scores and the personal gap use the ladder in force on the first flight's date, and a flight in a later year starts the gap from zero (balanceNote says why); every other programme is measured on today's ladder, and dateNote names any announced ladder it does not apply. Figures are status credits (tier points, XP, Qpoints, status credits, elite points) in each programme's own currency; award-mile earning is not yet computed. A programme's verified/provisional flags, secondaryCriteria footnotes and zero reasons are published to users and must be repeated, never smoothed over. A zero with reason no-rate-captured means Status Lark holds no published rate — it does not mean the flight earns nothing; needs-fare means the programme earns on the fare paid and no fare was supplied — pass fare. When a board carries fareNeeded, read it first: ask for the fare before calling any programme the best for the trip. A segment's codeshare note says which carrier's table priced a codeshare and whether that was the programme's published rule or an assumption; repeat it. A segment's routeSetAssumed note says the figure is the programme's "other routes" rate because the route could not be placed in the named route set(s) that earn differently; repeat it beside the figure. A segment with verified: false carries a disclosure: that figure is not fully confirmed (Status Lark keeps it, marked). Repeat the disclosure verbatim beside the figure. Zero reasons ticket-not-eligible (the programme's terms exclude this kind of ticket — quote ticketTerms) and ticket-rule-not-captured (not read; most programmes exclude such tickets, but it is not their published word) apply to a ticketType other than a paid fare. Figures assume a paid ticket unless you say otherwise. Award tickets bought with miles or points, and staff, industry and most companion fares, generally earn no status — check the programme's own terms.

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": {
      "segments": "<segments>"
    },
    "name": "credit_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
rankByNoDefault score. Cost needs a fare in one currency on every segment.
segmentsYes
positionsNoYour standing in programmes you hold. Used for this reply only; never stored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly and openWorld; the description goes well beyond them, disclosing currency semantics, that award-mile earning is not computed, that positions are 'used for this reply only; never stored', how verified/provisional/zero/disclosure fields must be surfaced, and the ladder-year behaviour with balanceNote and dateNote.

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?

Front-loaded correctly with purpose before the date mechanics, but the body is a dense wall of near-identical 'repeat it' instructions for codeshare, routeSetAssumed, disclosure and zero reasons that could be consolidated. Length is defensible for the complexity, yet several sentences repeat the same imperative.

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?

For a three-parameter, no-output-schema tool that returns complex per-programme figures, the description covers return semantics (coverage, bookedSplit, zero reasons, disclosures) thoroughly enough that an agent knows what it will get back and how to report it. Nothing material is missing.

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

Parameters4/5

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

Schema coverage is 67% and already documents most fields, but the description adds cross-parameter logic the schema cannot express: the bookedDate/travelDate dependency, 'blank date means today's rules', and the fare-needed condition triggered by fareNeeded on a board. It does not restate every field, so it adds real value rather than duplicating.

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 opening sentence gives a specific verb and resource ('computes the status credits every eligible loyalty programme would award') plus the ranking key ('Lark Score'), which is far more precise than the title. It also implicitly separates itself from earn_for_programme by scoping to all programmes at once and from programme_ladder by naming it as a data source.

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?

Rich conditional guidance: 'Never guess a date', 'ask for bookedDate only when its ask is true', 'pass fare' when needs-fare appears, and 'ask for the fare before calling any programme the best for the trip'. What it lacks is explicit routing to a named sibling (e.g. compare_itineraries vs this tool), so it stops short of the 5 bar.

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