Skip to main content
Glama

Refund Window and Dispute Limit Check

refund_window_check
Read-onlyIdempotent

Check whether a refund request falls inside your refund window and inside the card-network dispute (chargeback) time limit you send, counted in calendar days. Send the purchase date, the request date, refund_window_days (your policy, for example 30) and, if you want the dispute side, dispute_limit_days (the limit for the reason code, for example 120). The refund window can run from the purchase or from the delivery date; the dispute limit runs from the purchase date unless you send dispute_start_date (for example the expected delivery date for goods not received). Get back the last day of each, inside or outside, and the days left or days past. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/refund-window-check). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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": {
      "purchase_date": "<purchase_date>",
      "request_date": "<request_date>",
      "refund_window_days": "<refund_window_days>"
    },
    "name": "refund_window_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional label for the order (your own text, echoed back; not a person).
request_dateYesDate the customer asked for the refund, YYYY-MM-DD.
delivery_dateNoDelivery date, YYYY-MM-DD (needed when refund_window_from is delivery).
purchase_dateYesPurchase or transaction processing date, YYYY-MM-DD.
dispute_limit_daysNoOptional: the card-network dispute time limit in calendar days for the case (from your network's rules or acquirer).
dispute_start_dateNoOptional: the date the dispute limit counts from, when it is not the purchase date, YYYY-MM-DD.
refund_window_daysYesYour refund window in calendar days (0 = same day only).
refund_window_fromNoWhether the refund window counts from the purchase date (default) or the delivery date.purchase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, and the description adds material context beyond them: it is free, runs no model, uses no network, stores nothing, signs every answer, and returns structured errors (bad input, too large, hourly limit). It also discloses input restrictions on labels (emails, web addresses, long digit runs refused) and the disclaimer that it is not legal/tax/financial advice.

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 description is dense but front-loaded: purpose first, then required inputs, then optional branches, then outputs and behavior. Given there is no output schema, enumerating the answer fields earns its place, though the listing of field names is terse and adds some bulk.

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 no output schema, the description does the necessary work by listing the returned fields (ok, verdict, result, rule, does_not, sources, observation, signature, verify) and the error shape, plus storage and signing behavior. The individual answer fields are named but not explained, leaving a small gap for an agent interpreting results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: refund_window_days is framed as the caller's own policy (e.g. 30), dispute_limit_days as the network limit for the reason code (e.g. 120), and dispute_start_date is explained with a concrete scenario. The distinction between counting from purchase vs delivery is also spelled out in prose.

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 states a specific verb and resource: checking a refund request against the refund window and the card-network dispute time limit, both in calendar days. It is clear what the tool computes (last day of each, inside/outside, days left or past). It does not name or differentiate itself from plausible siblings such as return_window, so it falls short of a 5.

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?

It gives concrete usage context: send purchase date, request date, refund_window_days and, 'if you want the dispute side,' dispute_limit_days, plus when dispute_start_date is needed (e.g. expected delivery date for goods not received). It does not state when to prefer this over sibling tools or when not to use it.

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