# Truck Load Profit Calculator

> Truck Load Profit Calculator is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Calculates net profit, all-in cost, and an ACCEPT/REJECT/MARGINAL verdict for a trucking load given rate, miles, fuel price, and cost-per-mile inputs.

## Facts

- Endpoint: GET https://store.agentexchange.work/truck/profit
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/truck-load-profit-calculator-0659d60f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5vPcq0ZwrjiPOmg07UqXc

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-0659d60f
```

Example prompt: Can you tell me if I should accept a load paying $1,850 gross for 600 loaded miles with 80 deadhead miles — my truck gets 6.5 MPG, diesel is $4.10 a gallon, and my fixed costs are $0.55 per mile with $0.35 in variable costs?

## When to prefer this

Use this endpoint when an AI agent or dispatcher needs to instantly evaluate whether a specific trucking load is financially worthwhile, producing a clear ACCEPT/REJECT/MARGINAL decision along with detailed cost breakdown. Ideal for freight broker integrations, owner-operator decision tools, or load board agents that need to filter profitable loads automatically.

## Known failure modes

- Missing required 'rate' or 'miles' query parameters returns a validation error
- Non-numeric values for numeric fields cause a 400 error
- Payment not included or invalid x402 USDC payment on Base results in 402 Payment Required
- Negative or zero miles may produce nonsensical results
- Extremely low rates relative to costs may return REJECT with negative profit

## 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 net profit in USD, a verdict of ACCEPT, REJECT, or MARGINAL, total all-in cost, cost per total mile, rate per loaded mile, and the break-even rate per loaded mile needed to cover costs.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "mpg": 6.5,
   "rate": 1850,
   "miles": 600,
   "deadhead": 80,
   "fuel_price": 4.1,
   "cost_per_mile_fixed": 0.55,
   "cost_per_mile_variable": 0.35
  }
 }
}
```

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/truck-load-profit-calculator-0659d60f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
