Fairshop Refunds Returns

v0.1.0
io.github.fpavia111-creator/fairshop-refunds-returns Checked 3 hours ago Published 3 days ago

Matches refunds to returns received

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fairshop_info

Show this pack: pinned model, mode, caps, Auto opt-ins, and the allow/ask/block decision for every tool.

fairshop_inspect_input

Show how a CSV, TSV, Excel, JSON or JSONL file under the root would be read: its format, which export it looks like, which of its columns map to this pack's columns, and what each column holds. Returns column names and shapes only, never cell values. Use it before a tool when a file comes straight from another system.

ParameterTypeDescription
path *stringA CSV, TSV, Excel .xlsx, JSON or JSONL file under the root
asstringSource kind to read it as (default: every kind this agent declares, best match first)
sheetstring | integerExcel sheet name or 0-based index (default: first visible sheet)

refunds_audit Match refunds to returns received

[ALLOW] Match every refund to the returns log by order and SKU: money refunded for items that never came back, customers owed a refund, refunds paid twice or above the price, full refunds on damaged returns.

ParameterTypeDescription
refunds *stringRefunds export under --root: order, SKU, refund date, amount, quantity, channel, customer e-mail
returns *stringReturns received log under --root (warehouse, 3PL or returns app): order, SKU, received date, quantity, condition
as_ofstringDate to measure ages, windows and deadlines from, as YYYY-MM-DD (default today)
ordersstringOrder lines under --root (optional): order, SKU, quantity, line total
settingsstringOptional settings JSON: grace_days, refund_due_days, returnless_skus, damaged_conditions

refunds_explain Explain one order

[ALLOW] Show the refunds and returns of one order and why it was flagged.

ParameterTypeDescription
order_id *stringOrder number, or order:SKU from refunds_audit
refunds *stringRefunds export under --root: order, SKU, refund date, amount, quantity, channel, customer e-mail
returns *stringReturns received log under --root (warehouse, 3PL or returns app): order, SKU, received date, quantity, condition
as_ofstringDate to measure ages, windows and deadlines from, as YYYY-MM-DD (default today)
ordersstringOrder lines under --root (optional): order, SKU, quantity, line total
settingsstringOptional settings JSON: grace_days, refund_due_days, returnless_skus, damaged_conditions

refunds_write_report Write the refunds-returns worklist

[ALLOW] Write refunds-returns.csv and .html (every order line not matched, by channel) into out_dir (default fairshop-out/refunds).

ParameterTypeDescription
refunds *stringRefunds export under --root: order, SKU, refund date, amount, quantity, channel, customer e-mail
returns *stringReturns received log under --root (warehouse, 3PL or returns app): order, SKU, received date, quantity, condition
as_ofstringDate to measure ages, windows and deadlines from, as YYYY-MM-DD (default today)
ordersstringOrder lines under --root (optional): order, SKU, quantity, line total
out_dirstringFolder under --root for the report files (default fairshop-out/refunds)
settingsstringOptional settings JSON: grace_days, refund_due_days, returnless_skus, damaged_conditions

refunds_draft_return_reminders Draft a return reminders

[ASK] Write drafts/return_reminders-customers.md: one polite reminder text and the list of orders refunded but not returned. Marked DRAFT. Sending goes through refunds_request_send (one click); a person sends the reminders.

ParameterTypeDescription
refunds *stringRefunds export under --root: order, SKU, refund date, amount, quantity, channel, customer e-mail
returns *stringReturns received log under --root (warehouse, 3PL or returns app): order, SKU, received date, quantity, condition
as_ofstringDate to measure ages, windows and deadlines from, as YYYY-MM-DD (default today)
ordersstringOrder lines under --root (optional): order, SKU, quantity, line total
out_dirstringFolder under --root for the files this writes (default fairshop-out/refunds).
settingsstringOptional settings JSON: grace_days, refund_due_days, returnless_skus, damaged_conditions

refunds_request_send Approve the return reminders (one click)

[ASK · binding_send] After one named human click (even in Auto), record that the reviewed return reminders draft is approved in return_reminders-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. A person on your team acts on it; the agent never does.

ParameterTypeDescription
draft *stringDraft path returned by the draft tool
draft_sha256 *stringsha256 returned by the draft tool
accept_open_issuesbooleanSet true, together with a note, to go ahead while open markers or issues remain. Default false (refused while any remain).
notestringWhy it is fine to go ahead with open issues; required when accept_open_issues is true. Kept in the audit log.
out_dirstringFolder under --root for the files this writes (default fairshop-out/refunds).
tostringWho it goes to; must match the draft when the draft names someone

issue_refund Issue refund

[BLOCK · move_money] Listed so agents can see it is refused. Fairshop Refunds and Returns never refunds or reverses a refund.

customer_email_send Customer email send

[BLOCK · binding_send] Listed so agents can see it is refused. Fairshop Refunds and Returns never e-mails a customer; a person sends the reviewed reminders.