Skip to main content
Glama

Check return eligibility

return_eligibility
Read-onlyIdempotent

Evaluate whether a US consumer subscription purchase can be reversed under versioned source-backed rules. Returns UNKNOWN when required conditions are absent or manual review is required.

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
methodNo
vendorNo
messageYes
verdictYes
returnableNo
return_typeNo
source_hashNo
evaluated_atNo
rules_versionNo
policy_versionNo
rulebook_resultNo
required_contextNo
policy_source_urlNo
return_window_daysNo
days_since_purchaseNo
policy_last_checkedNo
policy_source_notesNo
policy_last_verified_utcNo

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, indicating safe read operations. The description adds the detail that the tool returns UNKNOWN when conditions are absent or manual review is required, which is a behavioral trait beyond annotations. However, it lacks disclosure of other aspects like rate limits or auth needs.

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 a single concise sentence that front-loads the core purpose and key behavior (UNKNOWN return). Every word adds value, with no redundancy 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?

Given the presence of a complete input schema, annotations, and an output schema (indicated), the description sufficiently covers the tool's behavior. It could mention error handling or prerequisites, but for a simple eligibility check, the UNKNOWN detail adds necessary context. Slightly incomplete for a fully comprehensive view.

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 covers all 5 parameters with 100% description coverage, providing detailed meanings for each (e.g., enums, constraints). The tool description does not add additional parameter-level context beyond what the schema already provides, so it meets the baseline with no extra value.

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 clearly states the tool evaluates return eligibility for US consumer subscription purchases under versioned source-backed rules, and explicitly mentions the UNKNOWN return state. This is specific and distinguishes from sibling tools like refund_eligibility or cancellation_penalty.

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 provides no guidance on when to use this tool versus alternatives (cancellation_penalty, refund_eligibility, trial_terms). It does not mention prerequisites, context, or exclusions. The only implicit hint is 'US consumer subscription purchase', which is not sufficient to differentiate usage scenarios.

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.