Fairhaul Freight Accruals

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

Fairhaul Freight Accruals: builds the month-end freight accrual from your shipments and carrier…

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)

accruals_accrue Build the freight accrual

[ALLOW] List shipments shipped by period end with no invoice dated by period end, each with an estimate and its basis; totals by GL account and cost center; reversal and accuracy of the prior accrual.

ParameterTypeDescription
invoices *stringCarrier invoices received (CSV, Excel, JSON or X12 210), with invoice dates
period_end *stringLast day of the period being closed, YYYY-MM-DD
shipments *stringShipments under --root (TMS or ERP export): shipment id, carrier, ship date, quote, lane, cost center, GL account, status
contractstringOptional freight contract JSON used to estimate shipments with no quote
priorstringOptional last-period accrual (shipment_id, amount) to reverse and measure accuracy

accruals_write_report Write the accrual detail and journal draft

[ALLOW] Write accruals-accrual.csv and .html (one row per shipment accrued, by cost center and the prior-period reversal) and journal-entry-draft.csv (debits by GL and cost center, one credit to accrued freight) into out_dir (default fairhaul-out/accruals). Returns the journal sha256.

ParameterTypeDescription
invoices *stringCarrier invoices received (CSV, Excel, JSON or X12 210), with invoice dates
period_end *stringLast day of the period being closed, YYYY-MM-DD
shipments *stringShipments under --root (TMS or ERP export): shipment id, carrier, ship date, quote, lane, cost center, GL account, status
contractstringOptional freight contract JSON used to estimate shipments with no quote
liability_accountstringAccount to credit (default accrued_freight)
out_dirstringFolder under --root for the files this writes (default fairhaul-out/accruals).
priorstringOptional last-period accrual (shipment_id, amount) to reverse and measure accuracy

accruals_request_post Approve the journal for posting (one click)

[ASK] After one named human click, record in post-approvals.csv that the reviewed journal-entry-draft.csv (by sha256) may be posted. Fairhaul Freight Accruals never posts.

ParameterTypeDescription
journal *stringPath of journal-entry-draft.csv written by accruals_write_report
journal_sha256 *stringsha256 returned by accruals_write_report for the journal file
notestringA short note kept with the record.
out_dirstringFolder under --root for the files this writes (default fairhaul-out/accruals).

erp_post_journal Erp post journal

[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Freight Accruals never posts to your ledger; a person posts the reviewed entry.