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
rulebook_resultNo
required_contextNo
policy_source_urlNo
days_since_purchaseNo
policy_last_checkedNo
policy_source_notesNo
policy_last_verified_utcNo

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable behavioral context by stating the tool returns UNKNOWN under specific conditions (missing required conditions, vendor approval needed). This goes beyond the annotations.

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 two sentences, front-loads the core action, and contains no redundant information. Every sentence adds value.

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?

Given the presence of an output schema, the description does not need to detail return values. It covers the main evaluation behavior and the UNKNOWN edge case. Could mention versioning or rule updates, but overall adequate for a read-only check tool.

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?

The input schema has 100% description coverage, so parameter semantics are already well-defined. The description does not add additional meaning beyond what the schema provides. Baseline 3 is appropriate.

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 description explicitly states the tool evaluates refund eligibility for US consumer subscriptions against versioned rules, and distinguishes itself by specifying the UNKNOWN return case. This clearly identifies the tool's purpose and differentiates it from sibling tools like cancellation_penalty or 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 Guidelines3/5

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

The description implies usage for checking refund eligibility but does not explicitly contrast with sibling tools or state when not to use it. Without guidance on alternatives or exclusions, the agent must infer from 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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool evaluates a distinct policy aspect (cancellation penalty, refund, return, trial terms) with no overlap.

Naming Consistency5/5

All names follow a consistent snake_case pattern with a clear noun_qualifier structure (e.g., cancellation_penalty).

Tool Count5/5

Four tools is well-scoped for evaluating core subscription policies without redundancy.

Completeness4/5

Covers cancellation, refund, return, and trial policies comprehensively, though minor gaps like modification policies exist but are outside scope.