Fairhaul Customs Entries

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

Checks your customs broker's entry lines against your commercial invoices

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)

entries_check Check entries against invoices

[ALLOW] Every point found per entry line (value, quantity, origin, duty arithmetic, entered twice, invoice line not entered, missing data) and across entries (same SKU under different codes, same code and origin at different rates), with an estimated duty impact, plus each entry's totals and days left to ask for a correction.

ParameterTypeDescription
entries *stringEntry lines under --root from your broker or customs portal export: entry number and date, line, invoice number, SKU, tariff code, origin, quantity, entered value, exchange rate, duty rate and duty
invoices *stringCommercial invoice lines: invoice number, SKU, quantity, value, currency, origin
as_ofstringDate to count the days left from (default today)
correction_window_daysintegerDays after the entry date during which you can still ask for a correction, as your broker advises; leave out to skip the countdown
tolerance_pctnumberPercent difference in value to ignore (default 1)

entries_write_report Write the entry review

[ALLOW] Write entries.csv and .html (one row per point found; entries by deadline) into out_dir (default fairhaul-out/entries).

ParameterTypeDescription
entries *stringEntry lines under --root from your broker or customs portal export: entry number and date, line, invoice number, SKU, tariff code, origin, quantity, entered value, exchange rate, duty rate and duty
invoices *stringCommercial invoice lines: invoice number, SKU, quantity, value, currency, origin
as_ofstringDate to count the days left from (default today)
correction_window_daysintegerDays after the entry date during which you can still ask for a correction, as your broker advises; leave out to skip the countdown
out_dirstringFolder under --root for the report (default fairhaul-out/entries)
tolerance_pctnumberPercent difference in value to ignore (default 1)

entries_draft_correction_request Draft a correction request

[ASK] Write drafts/correction_request-<entry>.md: a note to your customs broker listing each point found on one entry and asking whether a correction is needed and by when. It asks the broker's view on differing codes and never proposes a classification. Marked DRAFT. Sending goes through entries_request_send (one click).

ParameterTypeDescription
entries *stringEntry lines under --root from your broker or customs portal export: entry number and date, line, invoice number, SKU, tariff code, origin, quantity, entered value, exchange rate, duty rate and duty
entry_number *stringEntry to write about
invoices *stringCommercial invoice lines: invoice number, SKU, quantity, value, currency, origin
as_ofstringDate to count the days left from (default today)
brokerstringBroker contact name for the greeting
correction_window_daysintegerDays after the entry date during which you can still ask for a correction, as your broker advises; leave out to skip the countdown
fromstringYour name
out_dirstringFolder under --root for the files this writes (default fairhaul-out/entries).
tostringBroker contact email or name
tolerance_pctnumberPercent difference in value to ignore (default 1)

entries_request_send Approve the correction request (one click)

[ASK · binding_send] After one named human click (even in Auto), record that the reviewed correction request draft is approved in correction_request-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. The person who deals with your broker 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/entries).
tostringWho it goes to; must match the draft when the draft names someone

customs_file_correction Customs file correction

[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Customs Entries never files anything with customs. Your broker files corrections.

customs_classify_item Customs classify item

[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Customs Entries never classifies goods or picks a tariff code. Ask your broker or a licensed customs professional.

ap_pay_duty Ap pay duty

[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Customs Entries never pays duty or broker invoices.