Fairhaul Returns Tracking

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

Follows every return from authorisation to credit

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

fairhaul_info

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

fairhaul_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)

returns_track Follow returns from label to credit

[ALLOW] Each RMA's stage (awaiting return, label unused, received not credited, credited not received, closed), every point found with its amount, and return value and freight by reason, customer and SKU.

ParameterTypeDescription
rmas *stringReturn authorisations under --root: RMA, customer, SKU, units, value, reason, date authorised, return label tracking, status
as_ofstringDate to judge ages from (default today)
chargesstringOptional return freight billed by carriers: tracking, carrier, amount, invoice number, invoice date
credit_daysintegerDays after receipt by which a credit is expected (default 7)
creditsstringOptional credits or refunds issued: RMA, amount, date, credit memo number
receiptsstringOptional returns received at the warehouse: RMA or tracking, date received, units received, condition
unused_daysintegerDays after authorisation with nothing received before the label counts as unused (default 30)

returns_write_report Write the returns report

[ALLOW] Write returns.csv and .html (points found; every RMA with its stage; by reason, customer and SKU) into out_dir (default fairhaul-out/returns).

ParameterTypeDescription
rmas *stringReturn authorisations under --root: RMA, customer, SKU, units, value, reason, date authorised, return label tracking, status
as_ofstringDate to judge ages from (default today)
chargesstringOptional return freight billed by carriers: tracking, carrier, amount, invoice number, invoice date
credit_daysintegerDays after receipt by which a credit is expected (default 7)
creditsstringOptional credits or refunds issued: RMA, amount, date, credit memo number
out_dirstringFolder under --root for the report (default fairhaul-out/returns)
receiptsstringOptional returns received at the warehouse: RMA or tracking, date received, units received, condition
unused_daysintegerDays after authorisation with nothing received before the label counts as unused (default 30)

returns_draft_carrier_dispute Draft a carrier dispute

[ASK] Write drafts/carrier_dispute-<carrier>.md: return freight charges from one carrier billed twice or on tracking numbers with no return authorised, with the total to credit. Marked DRAFT. Sending goes through returns_request_send (one click).

ParameterTypeDescription
carrier *stringCarrier to dispute with, as named in the charges file
charges *stringOptional return freight billed by carriers: tracking, carrier, amount, invoice number, invoice date
rmas *stringReturn authorisations under --root: RMA, customer, SKU, units, value, reason, date authorised, return label tracking, status
as_ofstringDate to judge ages from (default today)
credit_daysintegerDays after receipt by which a credit is expected (default 7)
creditsstringOptional credits or refunds issued: RMA, amount, date, credit memo number
fromstringYour name
out_dirstringFolder under --root for the files this writes (default fairhaul-out/returns).
receiptsstringOptional returns received at the warehouse: RMA or tracking, date received, units received, condition
tostringCarrier billing contact
unused_daysintegerDays after authorisation with nothing received before the label counts as unused (default 30)

returns_request_send Approve the carrier dispute (one click)

[ASK · binding_send] After one named human click (even in Auto), record that the reviewed carrier dispute draft is approved in carrier_dispute-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. Your returns or freight audit person 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 fairhaul-out/returns).
tostringWho it goes to; must match the draft when the draft names someone

erp_issue_credit Erp issue credit

[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Returns Tracking never issues, reverses or changes customer credits.

carrier_void_label Carrier void label

[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Returns Tracking never voids labels with carriers.

email_send Email send

[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Returns Tracking never emails carriers or customers.