---
name: ship-anything
description: Agent handbook for W4-C08 Ship-Anything (https://ship.fastmesh.dev) — deterministic 5-domain freight cost optimizer, 3D carton bin-packing engine, Amazon US FBA size-tier cliff scanner, Ocean LCL vs 20GP/40GP/40HQ vs Air break-even planner, reconciled Commercial Invoice & Packing List compiler, and 15-day GSR late-delivery claim scanner via REST, Remote /mcp, Causal Bazaar, and 0%-commission treg hub. Strictly $0 charged on HTTP 422 invalid inputs, imbalanced customs totals/weights, or zero-claim scans.
---

# Ship-Anything (`ship.fastmesh.dev`) — Agent Skill Handbook

> **Hard Guarantees**: Pure deterministic rule tables (UPS/FedEx/USPS/DHL/IATA/ISO 668/Incoterms 2020/Amazon US FBA) · Canonical SHA-256 verification digest (`receipt_sha256`) · **Strictly `$0` billed (`charged_micros: 0`, `chargeable: false`, `billing_status: "zero_charge_invalid_input"`)** on negative/zero dimensions, empty lists, unsupported carriers/Incoterms, or imbalanced customs weights/totals · **Zero false positives on excusable GSR exceptions** · **Zero customs undervaluation, zero percentage split, `0%` commission, and zero customer data resale**.

## Integration Surfaces

| Surface | Endpoint / ID | Protocol & Pricing |
| :--- | :--- | :--- |
| **Remote MCP Server** | `https://ship.fastmesh.dev/mcp` | JSON-RPC 2.0 (`initialize`, `tools/list`, `tools/call`: `ship_dim_pack`, `ship_ocean_fcl`, `ship_customs_docs`, `ship_gsr_claims`, `ship_fba_audit`, `ship_batch_audit`, `tools_search`, `tools_inspect`, `tools_execute`, `tools_poll_receipt`) |
| **REST + OpenAPI 3.1** | `https://ship.fastmesh.dev/openapi.json` | `POST /v1/dim-pack`, `POST /v1/ocean-fcl`, `POST /v1/customs-docs`, `POST /v1/gsr-claims`, `POST /v1/fba-audit`, `POST /v1/batch-audit`, `GET /health` |
| **treg hub (`0%` Commission)** | `ship-anything` | `$0.15` dim-pack / `$0.25` ocean-fcl & fba-audit / `$0.50` customs-docs & gsr-claims (`$0` on 422/empty) |
| **Causal Bazaar Public Card** | `ship_anything_freight_optimizer_v1` | `is_public=1`, `status: PUBLIC_TOLL`, `$0.15` base toll (`<= $2.00` hard cap) |
| **Storefront & Prepaid Packs** | `https://ship.fastmesh.dev/` | `$29` Starter (200 cr) / `$99` Growth (900 cr) / `$249` Scale (3,000 cr), `$0/mo`, zero recovery split |

---

## 1. Calling via Remote `/mcp` (JSON-RPC 2.0)

```bash
# 1. Discover available Ship-Anything MCP tools
curl -fsSL -X POST "https://ship.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# 2. Check UPS AHS cliff & 3D carton savings via MCP ($0.15 verified, $0 on 422)
curl -fsSL -X POST "https://ship.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "ship_dim_pack",
      "arguments": {
        "carrier": "ups_domestic",
        "carton": {"length": 49, "width": 20, "height": 14, "actual_weight": 18},
        "annual_volume": 1200
      }
    }
  }'

# 3. Scan Amazon US FBA size-tier cliffs via MCP ($0.25 verified)
curl -fsSL -X POST "https://ship.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "ship_fba_audit",
      "arguments": {
        "skus": [
          {"sku": "YOGA-MAT-PRO", "length_in": 18.5, "width_in": 12.0, "height_in": 6.0, "weight_lb": 3.0, "annual_units": 5000}
        ]
      }
    }
  }'
```

---

## 2. REST API Endpoints & Parameter Contracts

### A. `POST /v1/dim-pack` (`$0.15` verified / `10%` same-tenant cache refresh / `$0` on 422)
Computes dimensional weight (`139`, `166`, `5000`, `6000`), detects AHS (`>48 in`, `>30 in`, `>105 in` L+G, `>50 lb`), LPS (`>96 in`, `>130 in` L+G, `90 lb` min), and Over Maximum Limits (`>108 in`, `>165 in` L+G, `>150 lb`), runs 6-orientation 3D bin packing on `items`, and tests `0.25-1.5 in` trim candidates.

```bash
curl -fsSL -X POST "https://ship.fastmesh.dev/v1/dim-pack" \
  -H "Content-Type: application/json" \
  -d '{
    "carrier": "ups_domestic",
    "carton": {"length": 49, "width": 20, "height": 14, "actual_weight": 18},
    "annual_volume": 1200
  }'
```

### B. `POST /v1/ocean-fcl` (`$0.25` verified / `$0` on 422)
Compares Ocean LCL (`W/M` revenue tons), ISO `20GP`/`40GP`/`40HQ` FCL (with multi-container splitting), Air Freight (`167 kg/CBM`), and Express (`200 kg/CBM`), returning volume/weight utilization and exact break-even CBM thresholds.

```bash
curl -fsSL -X POST "https://ship.fastmesh.dev/v1/ocean-fcl" \
  -H "Content-Type: application/json" \
  -d '{"total_cbm": 18.0, "total_weight_kg": 6200.0}'
```

### C. `POST /v1/customs-docs` (`$0.50` verified / `$0` on 422 mismatch)
Compiles a reconciled Commercial Invoice and Packing List (standalone HTML, JSON, CSV, and SHA-256 digest). Enforces 6-10 digit HS codes, ISO-2 country codes, Incoterms 2020 (`EXW/FCA/FOB/CFR/CIF/CIP/DAP/DDP`), `gross_weight_kg >= net_weight_kg`, exact carton-to-invoice qty/weight parity, and strict zero-undervaluation compliance. Any mismatch returns HTTP `422` with `charged_micros: 0` and `reconciliation_errors`.

```bash
curl -fsSL -X POST "https://ship.fastmesh.dev/v1/customs-docs" \
  -H "Content-Type: application/json" \
  -d '{
    "invoice_number": "INV-2026-8801",
    "incoterm": "FOB",
    "currency": "USD",
    "shipper": {"name": "Shenzhen Precision Parts Co.", "address": "88 Nanshan Tech Park, Shenzhen", "country_iso2": "CN"},
    "consignee": {"name": "Pacific Hardware Distribution", "address": "400 Harbor Blvd, Long Beach, CA 90802", "country_iso2": "US"},
    "line_items": [
      {"sku": "ALU-BRKT-01", "description": "CNC Machined Aluminum Mounting Bracket", "hs_code": "7616995190", "origin_country_iso2": "CN", "quantity": 200, "unit_price": 12.5, "net_weight_kg": 40.0, "gross_weight_kg": 44.0}
    ],
    "cartons": [
      {"carton_no": "CTN-1-4", "sku": "ALU-BRKT-01", "quantity": 200, "net_weight_kg": 40.0, "gross_weight_kg": 44.0, "length_cm": 50, "width_cm": 40, "height_cm": 30}
    ],
    "declared_subtotal": 2500.0
  }'
```

### D. `POST /v1/gsr-claims` (`$0.50` verified / `$0` on 422 or zero recoverable claims)
Parses JSON `shipments` or raw `csv_text`, enforces the strict `15`-calendar-day carrier filing deadline against `audit_date_utc`, excludes published excusable exceptions (`weather`, `force_majeure`, `bad_address`, `consignee_unavailable`, `customs_hold`, `service_suspended`) with zero false positives, detects carrier DIM/AHS/duplicate billing errors, and returns a structured Dispute / Claim Pack (JSON + CSV).

```bash
curl -fsSL -X POST "https://ship.fastmesh.dev/v1/gsr-claims" \
  -H "Content-Type: application/json" \
  -d '{
    "audit_date_utc": "2026-12-02T00:00:00Z",
    "shipments": [
      {"tracking_number": "1Z999AA10123456784", "carrier": "UPS", "service_level": "UPS Next Day Air", "promised_delivery_utc": "2026-11-26T15:30:00Z", "actual_delivery_utc": "2026-11-26T19:45:00Z", "shipping_cost_usd": 64.5, "exception_code": ""},
      {"tracking_number": "1Z999AA10123456785", "carrier": "UPS", "service_level": "UPS Next Day Air", "promised_delivery_utc": "2026-11-25T15:30:00Z", "actual_delivery_utc": "2026-11-26T12:15:00Z", "shipping_cost_usd": 58.0, "exception_code": "weather"}
    ]
  }'
```

### E. `POST /v1/fba-audit` (`$0.25` verified / `$0` on 422)
Audits SKU dimensions against Amazon US FBA size tiers using DIM divisor `139` and ranks `0.1-1.5 in` trim savings by annual USD impact.

### F. `POST /v1/batch-audit` (Up to 500 rows; `$0.05`/verified row up to `$2.00` cap)
Processes 100+ rows concurrently with an approval budget guard and per-row `$0` protection on invalid rows.

---

## 3. Calling via `treg hub` (`0%` Seller Commission) & Local CLI (`run_hand.py`)

```bash
# treg hub (0% seller commission, $0 on 422/empty output)
treg call ship-anything --data '{"action":"dim-pack","payload":{"carrier":"ups_domestic","carton":{"length":49,"width":20,"height":14,"actual_weight":18},"annual_volume":1200}}'

# Local CLI hand (hand_id: ship_anything_freight_optimizer_v1)
python3 run_hand.py dim-pack --input '{"carrier":"ups_domestic","carton":{"length":49,"width":20,"height":14,"actual_weight":18}}'
python3 run_hand.py health
```

---

## 4. Billing Invariants, Legal Boundaries & Data Privacy

- **Flat Non-Contingent Prepaid Pricing**: `$29` (200 credits) / `$99` (900 credits) / `$249` (3,000 credits) via Creem.io with zero percentage split, `0%` commission, and no recurring lock-in.
- **Zero-Charge Safety**: Negative/zero dimensions, zero weights, empty SKU lists, unsupported carriers/Incoterms, and imbalanced Commercial Invoice / Packing List payloads return HTTP `422` with `charged_micros: 0`, `charged_usd: 0.0`, and zero archive cache pollution.
- **Legal & Brokerage Boundary**: Independent freight-engineering software tooling. Not a law firm, not a CPA firm, and not a licensed customs broker; does not provide legal advice or customs representation.
- **Zero-Customer-Data-Resale Pledge**: Customer SKU dimensions, supplier invoices, carrier tracking numbers, and freight quotes are never sold, sublicensed, or used to train third-party AI models. Contact `support@ship.fastmesh.dev` or `ops@ship.fastmesh.dev`.
