Skip to main content
Glama

Check refund eligibility

refund_eligibility
Read-onlyIdempotent

Evaluate a US consumer subscription refund against versioned source-backed rules. Returns UNKNOWN when required conditions are absent or the vendor requires approval or manual policy review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planYesPlan type. Currently only 'individual' plans are supported.
regionYesRegion code. Currently only 'US' is supported.
vendorYesVendor identifier (lowercase, underscore-separated).
days_since_purchaseYesNumber of days since the subscription was purchased.
qualifying_conditions_metNoRequired when the vendor policy has source-specific conditions such as first purchase, unused benefits, or an eligible annual plan.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
vendorNo
messageYes
verdictYes
refundableNo
source_hashNo
window_daysNo
evaluated_atNo
rules_versionNo
policy_versionNo
automation_safeNo
policy_evidenceNo
rulebook_resultNo
required_contextNo
policy_source_urlNo
days_since_purchaseNo
policy_last_checkedNo
policy_source_notesNo
policy_last_verified_utcNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / automation_safe
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / policy_evidence
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "checked_at": {
      +      "type": "string"
      +    },
      +    "current": {
      +      "type": "boolean"
      +    },
      +    "evaluated_at": {
      +      "type": "string"
      +    },
      +    "policy": {
      +      "enum": [
      +        "refund",
      +        "cancel",
      +        "return",
      +        "trial"
      +      ],
      +      "type": "string"
      +    },
      +    "policy_version": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "schema_version": {
      +      "enum": [
      +        "policy_evidence_v1"
      +      ],
      +      "type": "string"
      +    },
      +    "snapshot_generated_at": {
      +      "type": "string"
      +    },
      +    "snapshot_hash": {
      +      "type": "string"
      +    },
      +    "source_hash": {
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "current",
      +        "expired",
      +        "unavailable",
      +        "review_required"
      +      ],
      +      "type": "string"
      +    },
      +    "valid_until": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "vendor": {
      +      "type": "string"
      +    },
      +    "verified_at": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "schema_version",
      +    "policy",
      +    "vendor",
      +    "status",
      +    "reason",
      +    "current",
      +    "evaluated_at"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / refundable / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / qualifying_conditions_met
      Added value: +{
      +  "description": "Required when the vendor policy has source-specific conditions such as first purchase, unused benefits, or an eligible annual plan.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "code": {
      +      "type": "string"
      +    },
      +    "days_since_purchase": {
      +      "type": "number"
      +    },
      +    "evaluated_at": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "policy_last_checked": {
      +      "type": "string"
      +    },
      +    "policy_last_verified_utc": {
      +      "type": "string"
      +    },
      +    "policy_source_notes": {
      +      "type": "string"
      +    },
      +    "policy_source_url": {
      +      "type": "string"
      +    },
      +    "policy_version": {
      +      "type": "string"
      +    },
      +    "refundable": {
      +      "type": "boolean"
      +    },
      +    "required_context": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "rulebook_result": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "rules_version": {
      +      "type": "string"
      +    },
      +    "source_hash": {
      +      "type": "string"
      +    },
      +    "vendor": {
      +      "type": "string"
      +    },
      +    "verdict": {
      +      "enum": [
      +        "ALLOWED",
      +        "DENIED",
      +        "UNKNOWN"
      +      ],
      +      "type": "string"
      +    },
      +    "window_days": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "verdict",
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / vendor / enum
      Previous value: -[
      -  "1password",
      -  "adobe",
      -  "amazon_music_unlimited",
      -  "amazon_prime",
      -  "apple_app_store",
      -  "apple_arcade",
      -  "apple_music",
      -  "apple_tv_plus",
      -  "audible",
      -  "bitwarden",
      -  "bumble",
      -  "calm",
      -  "canva",
      -  "chatgpt_plus",
      -  "claude_pro",
      -  "coursera_plus",
      -  "crunchyroll",
      -  "deezer",
      -  "discord_nitro",
      -  "disney_plus",
      -  "doordash_dashpass",
      -  "dropbox_us",
      -  "duolingo",
      -  "espn_plus",
      -  "evernote",
      -  "expressvpn",
      -  "figma",
      -  "fubo_tv",
      -  "github_pro",
      -  "google_one",
      -  "google_play",
      -  "grammarly",
      -  "headspace",
      -  "hellofresh",
      -  "hinge",
      -  "hulu",
      -  "icloud_plus",
      -  "instacart_plus",
      -  "kindle_unlimited",
      -  "linkedin_premium",
      -  "masterclass",
      -  "max",
      -  "microsoft_365",
      -  "midjourney",
      -  "netflix",
      -  "nintendo_switch_online",
      -  "noom",
      -  "nordvpn",
      -  "notion",
      -  "paramount_plus",
      -  "peacock",
      -  "peloton",
      -  "playstation_plus",
      -  "proton",
      -  "ring_protect",
      -  "scribd",
      -  "shutterstock",
      -  "slack",
      -  "sling_tv",
      -  "spotify",
      -  "squarespace",
      -  "strava",
      -  "surfshark",
      -  "tidal",
      -  "tinder",
      -  "todoist",
      -  "twitch",
      -  "uber_one",
      -  "walmart_plus",
      -  "wix",
      -  "xbox_game_pass",
      -  "youtube_premium",
      -  "youtube_tv",
      -  "zoom"
      -]New value: +[
      +  "1password",
      +  "adobe",
      +  "amazon_music_unlimited",
      +  "amazon_prime",
      +  "amc_plus",
      +  "apple_app_store",
      +  "apple_arcade",
      +  "apple_music",
      +  "apple_tv_plus",
      +  "audible",
      +  "bitwarden",
      +  "britbox",
      +  "bumble",
      +  "calm",
      +  "canva",
      +  "chatgpt_plus",
      +  "claude_pro",
      +  "coursera_plus",
      +  "crunchyroll",
      +  "dashlane",
      +  "deezer",
      +  "discord_nitro",
      +  "discovery_plus",
      +  "disney_plus",
      +  "doordash_dashpass",
      +  "dropbox_us",
      +  "duolingo",
      +  "ea_play",
      +  "espn_plus",
      +  "evernote",
      +  "expressvpn",
      +  "figma",
      +  "fitbit_premium",
      +  "fubo_tv",
      +  "github_pro",
      +  "google_one",
      +  "google_play",
      +  "grammarly",
      +  "headspace",
      +  "hellofresh",
      +  "hinge",
      +  "hulu",
      +  "icloud_plus",
      +  "instacart_plus",
      +  "keeper",
      +  "kindle_unlimited",
      +  "lastpass",
      +  "linkedin_premium",
      +  "masterclass",
      +  "max",
      +  "microsoft_365",
      +  "midjourney",
      +  "mlb_tv",
      +  "myfitnesspal_premium",
      +  "netflix",
      +  "new_york_times",
      +  "nfl_plus",
      +  "nintendo_switch_online",
      +  "noom",
      +  "nordvpn",
      +  "notion",
      +  "paramount_plus",
      +  "patreon",
      +  "peacock",
      +  "peloton",
      +  "playstation_plus",
      +  "proton",
      +  "reddit_premium",
      +  "ring_protect",
      +  "roblox_premium",
      +  "scribd",
      +  "shutterstock",
      +  "siriusxm",
      +  "slack",
      +  "sling_tv",
      +  "snapchat_plus",
      +  "soundcloud_go",
      +  "spotify",
      +  "squarespace",
      +  "starz",
      +  "strava",
      +  "substack",
      +  "surfshark",
      +  "telegram_premium",
      +  "tidal",
      +  "tinder",
      +  "todoist",
      +  "twitch",
      +  "uber_one",
      +  "ubisoft_plus",
      +  "wall_street_journal",
      +  "walmart_plus",
      +  "washington_post",
      +  "weightwatchers",
      +  "wix",
      +  "x_premium",
      +  "xbox_game_pass",
      +  "youtube_premium",
      +  "youtube_tv",
      +  "zoom"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / vendor / enum
      Previous value: -[
      -  "1password",
      -  "adobe",
      -  "amazon_prime",
      -  "apple_app_store",
      -  "apple_music",
      -  "apple_tv_plus",
      -  "audible",
      -  "bitwarden",
      -  "bumble",
      -  "calm",
      -  "canva",
      -  "chatgpt_plus",
      -  "claude_pro",
      -  "coursera_plus",
      -  "crunchyroll",
      -  "deezer",
      -  "disney_plus",
      -  "doordash_dashpass",
      -  "dropbox_us",
      -  "duolingo",
      -  "evernote",
      -  "expressvpn",
      -  "figma",
      -  "fubo_tv",
      -  "github_pro",
      -  "google_play",
      -  "grammarly",
      -  "headspace",
      -  "hellofresh",
      -  "hinge",
      -  "hulu",
      -  "icloud_plus",
      -  "instacart_plus",
      -  "linkedin_premium",
      -  "masterclass",
      -  "max",
      -  "microsoft_365",
      -  "midjourney",
      -  "netflix",
      -  "nintendo_switch_online",
      -  "noom",
      -  "nordvpn",
      -  "notion",
      -  "paramount_plus",
      -  "peacock",
      -  "peloton",
      -  "playstation_plus",
      -  "scribd",
      -  "shutterstock",
      -  "slack",
      -  "sling_tv",
      -  "spotify",
      -  "squarespace",
      -  "strava",
      -  "surfshark",
      -  "tidal",
      -  "tinder",
      -  "todoist",
      -  "twitch",
      -  "walmart_plus",
      -  "wix",
      -  "xbox_game_pass",
      -  "youtube_premium",
      -  "zoom"
      -]New value: +[
      +  "1password",
      +  "adobe",
      +  "amazon_music_unlimited",
      +  "amazon_prime",
      +  "apple_app_store",
      +  "apple_arcade",
      +  "apple_music",
      +  "apple_tv_plus",
      +  "audible",
      +  "bitwarden",
      +  "bumble",
      +  "calm",
      +  "canva",
      +  "chatgpt_plus",
      +  "claude_pro",
      +  "coursera_plus",
      +  "crunchyroll",
      +  "deezer",
      +  "discord_nitro",
      +  "disney_plus",
      +  "doordash_dashpass",
      +  "dropbox_us",
      +  "duolingo",
      +  "espn_plus",
      +  "evernote",
      +  "expressvpn",
      +  "figma",
      +  "fubo_tv",
      +  "github_pro",
      +  "google_one",
      +  "google_play",
      +  "grammarly",
      +  "headspace",
      +  "hellofresh",
      +  "hinge",
      +  "hulu",
      +  "icloud_plus",
      +  "instacart_plus",
      +  "kindle_unlimited",
      +  "linkedin_premium",
      +  "masterclass",
      +  "max",
      +  "microsoft_365",
      +  "midjourney",
      +  "netflix",
      +  "nintendo_switch_online",
      +  "noom",
      +  "nordvpn",
      +  "notion",
      +  "paramount_plus",
      +  "peacock",
      +  "peloton",
      +  "playstation_plus",
      +  "proton",
      +  "ring_protect",
      +  "scribd",
      +  "shutterstock",
      +  "slack",
      +  "sling_tv",
      +  "spotify",
      +  "squarespace",
      +  "strava",
      +  "surfshark",
      +  "tidal",
      +  "tinder",
      +  "todoist",
      +  "twitch",
      +  "uber_one",
      +  "walmart_plus",
      +  "wix",
      +  "xbox_game_pass",
      +  "youtube_premium",
      +  "youtube_tv",
      +  "zoom"
      +]
  5. Changed3 schema fields changed
    • changedInput schema / properties / days_since_purchase / description
      Previous value: -"Number of days since the subscription was purchased. Must be a non-negative number."New value: +"Number of days since the subscription was purchased."
    • changedInput schema / properties / vendor / description
      Previous value: -"Vendor identifier (lowercase, underscore-separated). Supported: 1password, adobe, amazon_prime, apple_app_store, apple_music, apple_tv_plus, audible, bitwarden, bumble, calm, canva, chatgpt_plus, claude_pro, coursera_plus, crunchyroll, deezer, disney_plus, doordash_dashpass, dropbox_us, duolingo, evernote, expressvpn, figma, fubo_tv, github_pro, google_play, grammarly, headspace, hellofresh, hinge, hulu, icloud_plus, instacart_plus, linkedin_premium, masterclass, max, microsoft_365, midjourney, netflix, nintendo_switch_online, noom, nordvpn, notion, paramount_plus, peacock, peloton, playstation_plus, scribd, shutterstock, slack, sling_tv, spotify, squarespace, strava, surfshark, tidal, tinder, todoist, twitch, walmart_plus, wix, xbox_game_pass, youtube_premium, zoom"New value: +"Vendor identifier (lowercase, underscore-separated)."
    • addedInput schema / properties / vendor / enum
      Added value: +[
      +  "1password",
      +  "adobe",
      +  "amazon_prime",
      +  "apple_app_store",
      +  "apple_music",
      +  "apple_tv_plus",
      +  "audible",
      +  "bitwarden",
      +  "bumble",
      +  "calm",
      +  "canva",
      +  "chatgpt_plus",
      +  "claude_pro",
      +  "coursera_plus",
      +  "crunchyroll",
      +  "deezer",
      +  "disney_plus",
      +  "doordash_dashpass",
      +  "dropbox_us",
      +  "duolingo",
      +  "evernote",
      +  "expressvpn",
      +  "figma",
      +  "fubo_tv",
      +  "github_pro",
      +  "google_play",
      +  "grammarly",
      +  "headspace",
      +  "hellofresh",
      +  "hinge",
      +  "hulu",
      +  "icloud_plus",
      +  "instacart_plus",
      +  "linkedin_premium",
      +  "masterclass",
      +  "max",
      +  "microsoft_365",
      +  "midjourney",
      +  "netflix",
      +  "nintendo_switch_online",
      +  "noom",
      +  "nordvpn",
      +  "notion",
      +  "paramount_plus",
      +  "peacock",
      +  "peloton",
      +  "playstation_plus",
      +  "scribd",
      +  "shutterstock",
      +  "slack",
      +  "sling_tv",
      +  "spotify",
      +  "squarespace",
      +  "strava",
      +  "surfshark",
      +  "tidal",
      +  "tinder",
      +  "todoist",
      +  "twitch",
      +  "walmart_plus",
      +  "wix",
      +  "xbox_game_pass",
      +  "youtube_premium",
      +  "zoom"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / vendor / description
      Previous value: -"Vendor identifier (lowercase, underscore-separated). Supported: 1password, adobe, amazon_prime, apple_app_store, apple_music, apple_tv_plus, audible, bumble, calm, canva, chatgpt_plus, claude_pro, coursera_plus, disney_plus, doordash_dashpass, dropbox_us, duolingo, evernote, expressvpn, github_pro, google_play, grammarly, headspace, hinge, hulu, instacart_plus, linkedin_premium, masterclass, max, microsoft_365, midjourney, netflix, nintendo_switch_online, nordvpn, notion, paramount_plus, peacock, peloton, playstation_plus, slack, spotify, strava, tidal, tinder, walmart_plus, xbox_game_pass, youtube_premium, zoom"New value: +"Vendor identifier (lowercase, underscore-separated). Supported: 1password, adobe, amazon_prime, apple_app_store, apple_music, apple_tv_plus, audible, bitwarden, bumble, calm, canva, chatgpt_plus, claude_pro, coursera_plus, crunchyroll, deezer, disney_plus, doordash_dashpass, dropbox_us, duolingo, evernote, expressvpn, figma, fubo_tv, github_pro, google_play, grammarly, headspace, hellofresh, hinge, hulu, icloud_plus, instacart_plus, linkedin_premium, masterclass, max, microsoft_365, midjourney, netflix, nintendo_switch_online, noom, nordvpn, notion, paramount_plus, peacock, peloton, playstation_plus, scribd, shutterstock, slack, sling_tv, spotify, squarespace, strava, surfshark, tidal, tinder, todoist, twitch, walmart_plus, wix, xbox_game_pass, youtube_premium, zoom"
  7. Changed1 schema field changed
    • changedInput schema / properties / vendor / description
      Previous value: -"Vendor identifier (lowercase, underscore-separated). Supported: adobe, apple_app_store, canva, dropbox_us, google_play, microsoft_365, netflix, notion, spotify"New value: +"Vendor identifier (lowercase, underscore-separated). Supported: 1password, adobe, amazon_prime, apple_app_store, apple_music, apple_tv_plus, audible, bumble, calm, canva, chatgpt_plus, claude_pro, coursera_plus, disney_plus, doordash_dashpass, dropbox_us, duolingo, evernote, expressvpn, github_pro, google_play, grammarly, headspace, hinge, hulu, instacart_plus, linkedin_premium, masterclass, max, microsoft_365, midjourney, netflix, nintendo_switch_online, nordvpn, notion, paramount_plus, peacock, peloton, playstation_plus, slack, spotify, strava, tidal, tinder, walmart_plus, xbox_game_pass, youtube_premium, zoom"
  8. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already convey read-only, idempotent, and non-destructive behavior. The description adds meaningful behavioral detail beyond that: it evaluates against 'versioned source-backed rules' and returns UNKNOWN when required conditions are absent or the vendor requires approval/manual review. This helps an agent predict edge-case outcomes.

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?

The description is compact and front-loaded. Two sentences convey the core purpose, the rule source, and the important UNKNOWN outcome. There is no redundant wording or filler.

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?

An output schema exists, so the description need not document return values. The description covers the key behavioral nuance (UNKNOWN cases) and the source-backed nature of the rules. It is complete for most use cases, though it could briefly clarify when someone should prefer return_eligibility or cancellation_penalty.

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 the schema already documents all parameters well. The description's mention of 'required conditions are absent' loosely relates to qualifying_conditions_met, but it does not add substantive per-parameter 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 clearly states a specific verb and resource: 'Evaluate a US consumer subscription refund.' It is unambiguous about what the tool checks. However, it does not explicitly differentiate itself from siblings like return_eligibility, cancellation_penalty, or trial_terms; the distinction is only implicit through the word 'refund.'

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?

The description gives clear context for when the tool is relevant: US consumer subscription refund eligibility checks. It does not state exclusions or explicitly direct the agent to alternatives, so it stops short of a 5, but the intended use is reasonably evident.

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.