Return Policy Extraction

Read a shop's return policy: the return window, conditions, exclusions and how to return.

Pay by wallet (x402) AI-generated return-policy-extract

Example

Example answer
{
  "retailer": "example.com",
  "conditions": [
    "No return policy information found on this page"
  ],
  "exclusions": null,
  "policy_url": "https://example.com",
  "contact_info": null,
  "free_returns": null,
  "process_steps": null,
  "refund_method": null,
  "restocking_fee": null,
  "exchange_available": null,
  "return_window_days": null,
  "store_credit_option": null,
  "international_returns": null
}

Inputs

FieldTypeRequiredWhat it is
urlstringYesRetailer website URL

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
conditionsarrayAlways (present in every successful answer)
free_returnsbooleanAlways (present in every successful answer)
refund_methodstringAlways (present in every successful answer)
return_window_daysnumberAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "return-policy-extract",
    "inputs": {
      "url": "https://www.amazon.com/gp/help/customer/display.html?nodeId=GKM69DUUYKQWKBER"
    },
    "max_price_cents": 20
  }'

Limitations

  • Complex conditions and exceptions can be simplified

    Complex conditional policies and product-specific exceptions may be simplified during extraction.

    What to do instead: Verify extracted terms against the retailer's full return policy page for product-category-specific conditions

  • Output size cap per call

    Structured output is limited to about 2000 output tokens per call; requests exceeding this limit are refused rather than returned truncated. Requests with large results can exceed this limit, and repeating the same request does not help.

    What to do instead: Read the retailer’s full return policy directly for conditions that exceed the output limit.