Skip to main content
Glama

Return Window Check

return_window
Read-onlyIdempotent

Check whether an order is still inside its return or warranty window under your own policy. Send the order date, the delivery date if the window runs from delivery, the date to check (the day the return is asked for), and the window as window_days (for example 30) or window_months (for example 12 for a one-year warranty). Choose whether the window runs from delivery (default) or from the order, whether the start day counts as day 1, and whether a last day on a Saturday or Sunday moves to Monday. Get back the start date, the last day, inside or outside, the days left or the days past the last day. 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/return-window). 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": {
      "order_date": "<order_date>",
      "check_date": "<check_date>"
    },
    "name": "return_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
check_dateYesThe date to check: the day the customer asks to return or claim, YYYY-MM-DD.
order_dateYesOrder date, YYYY-MM-DD.
starts_fromNoWhat the window runs from: delivery (default) or order.delivery
window_daysNoWindow length in days (30 for a 30-day return policy). Send this or window_months.
weekend_ruleNonone (default) or next_monday: a last day on a Saturday or Sunday moves to the Monday after.none
delivery_dateNoDelivery date, YYYY-MM-DD (needed when the window runs from delivery).
window_monthsNoWindow length in calendar months (12 for a one-year warranty). Send this or window_days.
start_day_countsNotrue if your policy counts the start day itself as day 1 (window_days only). Default false: day 1 is the day after.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), it discloses cost (free), execution model (no model, no network), data handling (nothing sent is stored), error behavior (ok false with bad input, too large, or hourly limit reasons), and signed answers with a verification URL. It also names the answer fields, so the agent knows what a successful call returns.

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?

Front-loaded with the purpose, then inputs, then outputs, then errors and disclaimers — a sensible order for scanning. It is dense and slightly list-like, and the bare enumeration of answer fields (does_not, rule, signature, verify) conveys little on its own, but no sentence is clearly wasteful.

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 work of naming the returned fields, and it also covers errors, cost, privacy, and signature verification for an 8-parameter tool. The only shortfall is that several returned field names are listed without explaining their meaning, leaving the agent to interpret them from the response.

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 every parameter already carries its own explanation, including the window_days/window_months examples and the weekend_rule and start_day_counts semantics. The description restates the key inputs in prose but adds no syntax or constraint detail beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource — checking whether an order is still inside its return or warranty window — and makes clear the window definition comes from the caller's own policy rather than a built-in rule. This is unmistakably distinct from the neighboring *_check tools, which cover unrelated domains like SPF, VAT, and spend limits.

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?

Gives a concrete invocation recipe: send order date, delivery date when the window runs from delivery, the check date, and the window as days or months, plus how to set the start-day and weekend rules. It does not state when to prefer this over an alternative or when not to use it, but the single-purpose nature of the tool leaves little ambiguity.

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