Fairhaul Parcel Refunds

v0.1.0
io.github.fpavia111-creator/fairhaul-parcel-refunds Checked 2 days ago Published 5 days ago

Fairhaul Parcel Refunds: audits UPS, FedEx, DHL and USPS invoice data for late deliveries…

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)

parcels_audit Audit parcel invoices

[ALLOW] Check every package for refundable charges and give a request-by date for each. Returns totals still claimable, already lost, and due within 3 days.

ParameterTypeDescription
invoices *stringParcel invoice data under --root (UPS, FedEx, DHL or USPS billing export as CSV, Excel or JSON), one row per package or per charge
as_ofstringDate to measure claim windows from, YYYY-MM-DD (default today)
termsstringOptional parcel terms JSON: dim_divisor, guarantee_waived, guaranteed_services, claim_window_days, commercial_addresses
voidsstringOptional list of voided label tracking numbers (CSV with a tracking column)

parcels_explain Explain one package

[ALLOW] Show one package's charges, findings and request-by date.

ParameterTypeDescription
invoices *stringParcel invoice data under --root (UPS, FedEx, DHL or USPS billing export as CSV, Excel or JSON), one row per package or per charge
tracking *stringTracking number to explain
as_ofstringDate to measure claim windows from, YYYY-MM-DD (default today)
termsstringOptional parcel terms JSON: dim_divisor, guarantee_waived, guaranteed_services, claim_window_days, commercial_addresses
voidsstringOptional list of voided label tracking numbers (CSV with a tracking column)

parcels_write_report Write the parcel worklist and deadline calendar

[ALLOW] Write parcels-audit.csv and .html (one row per package with findings) and claim-deadlines.ics (one event per carrier and request-by date) into out_dir (default fairhaul-out/parcels).

ParameterTypeDescription
invoices *stringParcel invoice data under --root (UPS, FedEx, DHL or USPS billing export as CSV, Excel or JSON), one row per package or per charge
as_ofstringDate to measure claim windows from, YYYY-MM-DD (default today)
out_dirstringFolder under --root for the files this writes (default fairhaul-out/parcels).
termsstringOptional parcel terms JSON: dim_divisor, guarantee_waived, guaranteed_services, claim_window_days, commercial_addresses
voidsstringOptional list of voided label tracking numbers (CSV with a tracking column)

parcels_draft_refund_request Draft a refund request

[ASK] Write drafts/refund_request-<carrier>.md listing every package of one carrier that is still inside the claim window, with amount, reason and request-by date. Marked DRAFT. Submitting goes through parcels_request_submit (one click); a person files it in the carrier's billing portal.

ParameterTypeDescription
carrier *stringCarrier as it appears in the invoice data (UPS, FedEx, DHL, USPS)
invoices *stringParcel invoice data under --root (UPS, FedEx, DHL or USPS billing export as CSV, Excel or JSON), one row per package or per charge
accountstringYour shipper account number
as_ofstringDate to measure claim windows from, YYYY-MM-DD (default today)
fromstringYour name and company
out_dirstringFolder under --root for the files this writes (default fairhaul-out/parcels).
termsstringOptional parcel terms JSON: dim_divisor, guarantee_waived, guaranteed_services, claim_window_days, commercial_addresses
voidsstringOptional list of voided label tracking numbers (CSV with a tracking column)

parcels_request_submit Approve the refund request (one click)

[ASK · binding_send] After one named human click (even in Auto), record that the reviewed refund request draft is approved in refund_request-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 fairhaul-out/parcels).
tostringWho it goes to; must match the draft when the draft names someone

carrier_portal_submit Carrier portal submit

[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Parcel Refunds never logs in to UPS, FedEx, DHL or USPS billing portals; a person files the request.

ap_pay_invoice Ap pay invoice

[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Parcel Refunds never pays carrier invoices.