Skip to main content
Glama

Returns initiate

returns_initiate
Idempotent

Initiate a return on a delivered order. Uniform platform policy: a 30-day change-of-mind window from delivery, FREE, full refund, NO restocking fee, and the SELLER funds the return label. Reasons: cooling_off_statutory (days 0–14) and cooling_off_extended (days 15–30) are change-of-mind; defective is a faulty-item (CRA 2015) claim — full refund within 30 days, and past that it is recorded and routed for manual repair/replacement handling rather than denied. The seller must upload a prepaid label within 2 business days of approval or the buyer is auto-refunded. Idempotent on order_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYesWhy the item is coming back: statutory 14-day cooling-off, seller's extended cooling-off window, or defective goods.
order_idYesUUID of the order to return.
descriptionNoFree-text detail about the return, max 2000 chars.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already provide idempotentHint and safety hints, but the description goes well beyond them by detailing the 30-day change-of-mind window, free returns, full refund, seller-funded label, defective handling under CRA 2015, auto-refund if label is late, and idempotency. No conflicts with 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 dense but every sentence carries essential information: the action, the policy terms, the reason semantics, the defective escalation path, the seller label obligation, and idempotency. It is front-loaded with the core purpose and contains no 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?

The description covers policy, reason behavior, and post-initiation seller obligations well. Since there is no output schema, it does not state the response shape or that a return ID is generated, but this is not critical for invoking the tool correctly given the rich context already provided.

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 baseline is 3, but the description adds significant meaning to the reason enum by explaining cooling_off_statutory, cooling_off_extended, and defective with time windows and consequences. It does not add much for order_id or description, but the reason semantics are substantially enriched.

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 opens with a specific verb and resource: 'Initiate a return on a delivered order.' This clearly distinguishes the tool from sibling tools like returns_get, returns_list, and seller_accept_return by its action of initiating rather than querying or responding.

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?

The description provides clear context on when to initiate a return and which reason codes apply in what timeframes. It does not explicitly name alternative tools or state when not to use this one, but the policy detail about defective items after 30 days gives practical routing guidance.

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.