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. Changed1 schema field changed
    • changedOutput schema / properties / policy_last_verified_utc / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  2. 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"
      +]
  3. 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"
      +}
  4. 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"
      +]
  5. 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"
      +]
  6. 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"
      +]
  7. 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"
  8. 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"
  9. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-open-world), so the bar is lower. The description adds real behavioral value by disclosing the UNKNOWN outcome path — absent conditions or vendor-approval/manual-review cases — which tells the agent results may be tri-state rather than a clean boolean.

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?

Two tightly written sentences, purpose front-loaded, with the UNKNOWN behavior as the supporting clause. No filler or repetition of structured fields.

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?

With an output schema present, return values need not be explained, and the description covers scope (US consumer subscriptions), rule provenance, and the UNKNOWN case. The one real gap is absent routing guidance against the sibling eligibility/penalty/trial tools.

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 vendor/plan/region/days_since_purchase are fully documented in the schema. The description adds no parameter-level detail beyond a loose allusion to "required conditions," which only faintly maps to qualifying_conditions_met; baseline 3 applies.

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?

States a specific verb ("Evaluate") and resource ("a US consumer subscription refund against versioned source-backed rules"), which is far more precise than the title. The subject matter implicitly separates it from cancellation_penalty and trial_terms, but it never names or distinguishes the close sibling return_eligibility.

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

Usage Guidelines2/5

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

The description explains what happens when conditions are unmet, but gives no when-to-use guidance and no routing versus return_eligibility, cancellation_penalty or trial_terms. The agent must infer selection from the tool name alone.

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.