Skip to main content
Glama

Unlock a case

unlock_case

Pay to unlock the full findings, the dispute letter and the phone script. With a shared_payment_token (a Stripe Shared Payment Token granted to the stripe_profile in the case summary's purchase), it charges $10.00 for this bill and unlocks the case in the same call. Without one, it returns a checkout URL and charges nothing itself. A case with no findings is refused: there is nothing to buy, and the user pays nothing when nothing is found. So is a case with nothing to act on yet (nothing_to_act_on), such as a bill sent without its Explanation of Benefits whose only finding is that the EOB is missing.

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": {
      "case_id": "<case_id>"
    },
    "name": "unlock_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNo"one_bill" is $10 for this bill, charged once. "subscription" is the monthly membership, which unlocks up to 25 bills a calendar month for anyone in a household. It is sold only while the case summary's `purchase.options` lists it; otherwise unlock_case answers `monthly_tier_paused` and charges nothing. A member who already has a code passes `membership_token` instead.
case_idYesThe case id returned by check_medical_bill (it starts with `case_`).
membership_tokenNoAn existing membership. If the user already subscribed, pass the token they were given and this bill unlocks immediately with nothing charged — a membership covers up to 25 bills a calendar month, including other people in the family. A membership that has used its 25 bills for the month answers membership_cap_reached; it is still valid, and a one-off unlock still works.
shared_payment_tokenNoA Stripe Shared Payment Token (`spt_…`) granted to the `stripe_profile` in the case summary's `purchase`, for at least $10.00 USD. When present, this call charges it once and unlocks the case; no checkout URL is returned. One bill only: a token pays once, so it cannot buy the membership, which renews. Present only when `purchase.options[].pay_with_shared_payment_token` is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / case_id / description
      Added value: +"The case id returned by check_medical_bill (it starts with `case_`)."
  2. Changed1 schema field changed
    • changedInput schema / properties / plan / description
      Previous value: -"\"one_bill\" is $10 for this bill. \"subscription\" is a $10-a-month membership that unlocks up to 25 bills a calendar month for anyone in a household."New value: +"\"one_bill\" is $10 for this bill, charged once. \"subscription\" is the monthly membership, which unlocks up to 25 bills a calendar month for anyone in a household. It is sold only while the case summary's `purchase.options` lists it; otherwise unlock_case answers `monthly_tier_paused` and charges nothing. A member who already has a code passes `membership_token` instead."
  3. Changed1 schema field changed
    • addedInput schema / properties / shared_payment_token
      Added value: +{
      +  "description": "A Stripe Shared Payment Token (`spt_…`) granted to the `stripe_profile` in the case summary's `purchase`, for at least $10.00 USD. When present, this call charges it once and unlocks the case; no checkout URL is returned. One bill only: a token pays once, so it cannot buy the membership, which renews. Present only when `purchase.options[].pay_with_shared_payment_token` is true.",
      +  "pattern": "^spt_[A-Za-z0-9]+$",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare this is a non-read-only, open-world, non-idempotent, non-destructive call. The description adds the substantive behavior the annotations cannot: a $10.00 charge with a shared payment token, a checkout URL and zero charge without one, and the fact that refusals cost the user nothing. It also discloses that a token pays only once, which explains the non-idempotent hint.

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

Conciseness4/5

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

The charge behavior is front-loaded and most sentences carry distinct information about pricing, tokens and refusals. The closing sentence ("So is a case with nothing to act on yet...") is grammatically awkward and could be tightened, but nothing is padding.

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 paid mutation with no output schema, the description covers both execution paths, the charge amount, and the named refusal/error outcomes (`monthly_tier_paused`, `membership_cap_reached`, `nothing_to_act_on`). It does not describe what the unlocked payload looks like on success, leaving that to sibling tools, which is a minor gap.

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 `plan`, `membership_token`, `shared_payment_token` and `case_id` are already well documented. The description restates the token-vs-no-token branch but adds little parameter-level detail beyond the schema, so the 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 outcome: pay to unlock the full findings, dispute letter and phone script for a case. The commercial action and the delivered artifact are both named, so an agent can distinguish this from read-only siblings like get_case or get_case_outputs without opening the 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?

Gives clear when-to-use context (to obtain the paid findings/letter/script) and two explicit when-not cases: a case with no findings is refused, and a case with nothing to act on yet (`nothing_to_act_on`) is refused. It does not name alternative tools for reading free case data, so it stops short of full alternative routing.

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