# Truck Load Profit Calculator

> Truck Load Profit Calculator is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-13).

Calculates whether a trucking load is profitable given rate, miles, fuel, and operating costs, returning a verdict and detailed cost breakdown.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/truck/profit
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/truck-load-profit-calculator-92b029b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6sBK-W-pnRWmgTCWlRqho

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability truck-load-profit-calculator-92b029b6
```

Example prompt: I have a load paying $1850 for 600 loaded miles with 50 deadhead miles — my truck gets 6.5 MPG, diesel is $3.80 a gallon, fixed costs are $0.45 per mile, and variable costs are $0.20 per mile. Should I take it?

## When to prefer this

Use this endpoint when an AI agent needs to evaluate whether a specific trucking freight load is financially viable before a dispatcher or owner-operator commits to hauling it. Ideal when you have a quoted rate and known mileage and want an instant accept/reject recommendation with cost breakdown. Preferred over manual spreadsheet calculations or generic financial APIs because it is purpose-built for trucking economics with load-specific cost inputs.

## Known failure modes

- Missing required 'rate' or 'miles' query params returns 400 error
- Payment of $0.001 USDC not received results in 402 Payment Required
- Invalid non-numeric values for numeric fields cause computation errors
- Extremely low or zero miles may produce division errors or unrealistic results

## How this service works

Given a freight load (rate, loaded miles, deadhead miles, fuel price, MPG, fixed+variable cost per mile), returns net profit, true cost-per-mile, break-even rate-per-mile, and an accept/reject verdict. For logistics and dispatch agents evaluating loads.

## Output

Returns a JSON object with the calculated profit in dollars, an ACCEPT or REJECT verdict, the all-in operating cost, cost per total mile (loaded + deadhead), rate per loaded mile, and break-even rate per loaded mile needed to cover costs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "rate",
      "miles"
     ],
     "properties": {
      "mpg": {
       "type": "number"
      },
      "rate": {
       "type": "number"
      },
      "miles": {
       "type": "number"
      },
      "deadhead": {
       "type": "number"
      },
      "fuel_price": {
       "type": "number"
      },
      "cost_per_mile_fixed": {
       "type": "number"
      },
      "cost_per_mile_variable": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "profit": 312.46,
  "verdict": "ACCEPT",
  "all_in_cost": 1537.54,
  "cost_per_total_mile": 2.33,
  "rate_per_loaded_mile": 3.08,
  "break_even_rate_per_loaded_mile": 2.56
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/truck-load-profit-calculator-92b029b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
