Skip to main content
Glama

Status Lark

Status credits in one programme

earn_for_programme
Read-only

Computes what an itinerary earns in ONE named programme, with the second-axis inputs the engine understands: member tier (where the programme's rules key on it) and booking channel (Atmos partner rules). Use credit_options to compare programmes; use this for the detail of one. 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. 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": {
      "programme": "<programme>",
      "segments": "<segments>"
    },
    "name": "earn_for_programme"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentsYes
programmeYes
memberTierNoThe tier the member holds, for the few programmes whose status earning rate depends on it (Finnair Plus, Miles&Smiles, Miles&Go). The tier's name as the programme prints it, or its last word ("Gold"). The answer's `memberTier` says which tier was applied, or that none was and why: repeat it.
bookingChannelNoWhere the ticket was bought, for programmes that key partner earning on it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries the substantive burden and does it well: it defines every zero reason (`no-rate-captured`, `needs-fare`, `ticket-not-eligible`, `ticket-rule-not-captured`), explains `coverage`, `bookedSplit`, `codeshare`, `routeSetAssumed`, `verified: false` disclosures, and warns that figures must be repeated unsmoothed. The only gap is that it never states rate limits, latency, or cost despite openWorldHint=true.

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?

Purpose and the sibling hand-off are front-loaded, which is good, but the body is one sprawling block of roughly ten long sentences with the same "repeat it" instruction restated for coverage, codeshare, routeSetAssumed, disclosures and flags. The rules are individually earned but could be consolidated into a short list without losing information, so the density hurts scanability.

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 four-parameter, multi-segment earning engine with no output schema, the description covers the full decision surface: which inputs trigger which branches, how to interpret coverage and booking-date splits, what every zero reason means and what to do next, and how to surface disclosures verbatim. Nothing an agent needs in order to call it correctly, or to relay the answer faithfully, appears to be 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 sits at 50%, but the description compensates with meaning the schema cannot carry: `memberTier` is only relevant "where the programme's rules key on it", `bookingChannel` matters for Atmos partner rules, `travelDate` selects dated rules and a blank date means today, and `bookedDate` disambiguates booking-time-dependent figures. It adds response-conditioned logic (pass `fare` when the result says it is missing) rather than restating field definitions.

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 first sentence names a specific verb and resource ("Computes what an itinerary earns in ONE named programme") and immediately scopes it against the sibling that does something else ("Use credit_options to compare programmes; use this for the detail of one"). An agent can distinguish it from credit_options and compare_itineraries from the text alone.

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

Usage Guidelines5/5

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

It gives explicit routing to the alternative tool and the condition that selects each, plus concrete call-site rules: "Never guess a date", "ask for the fare before calling any programme the best for the trip", and "ask for `bookedDate` only when its `ask` is true". It also states when to pass `fare` and when to ask for a ticket type, which is decision-level guidance, not just context.

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