{"uid":"cap_6sBK-W-pnRWmgTCWlRqho","slug":"truck-load-profit-calculator-92b029b6","name":"Truck Load Profit Calculator","description":"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.","url":"https://x402-agent-store.rileycraig14.workers.dev/truck/profit","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bQcppOaaa39mIrgX4uz2D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates whether a trucking load is profitable given rate, miles, fuel, and operating costs, returning a verdict and detailed cost breakdown.","exampleAgentPrompt":"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?","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:27.528Z","isFirstParty":false}