{"uid":"cap_k4nekG4nNAfRiWjQGL8Oi","slug":"riley-craig-x402-agent-store-truck-cost-per-mile-cpm-calculator-c07c3b98","name":"Riley Craig x402 Agent Store – Truck Cost Per Mile (CPM) Calculator","description":"Computes a trucking operation's true cost per mile from annual miles and cost inputs (truck payment, insurance, fuel, maintenance, tires, permits). Returns itemized CPM and the minimum profitable rate per mile.","url":"https://x402-agent-store.rileycraig14.workers.dev/truck/cpm","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":["annual_miles"],"properties":{"mpg":{"type":"number"},"other_mo":{"type":"number"},"tires_cpm":{"type":"number"},"fuel_price":{"type":"number"},"annual_miles":{"type":"number"},"insurance_mo":{"type":"number"},"maintenance_cpm":{"type":"number"},"truck_payment_mo":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"total_cpm":{"type":"number"},"min_profitable_rate_per_mile":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"fuel_cpm":0.6,"fixed_cpm":0.41,"other_cpm":0.05,"tires_cpm":0.04,"total_cpm":1.27,"maintenance_cpm":0.18,"min_profitable_rate_per_mile":1.46}},"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_MySzKhhgROF6nR4jEPwx6","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 the cost per mile breakdown and minimum profitable rate per mile for trucking operations based on fuel, fixed, maintenance, tires, insurance, and other costs.","exampleAgentPrompt":"Calculate my truck's cost per mile — I drive 120,000 miles a year, fuel is $3.80/gallon, my truck gets 6.5 MPG, my truck payment is $1,800/month, insurance is $900/month, maintenance is $0.18 per mile, tires are $0.04 per mile, and other monthly costs are $200.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a breakdown of cost components: fuel_cpm, fixed_cpm, maintenance_cpm, tires_cpm, other_cpm, total_cpm (all in dollars per mile), and min_profitable_rate_per_mile — the floor rate a trucker must charge to cover all operating costs.","failureModes":["Missing required 'annual_miles' parameter returns a 400 or validation error","Non-numeric values for numeric fields cause schema validation failure","Payment not fulfilled via x402 returns HTTP 402 Payment Required","Zero or negative annual_miles may produce divide-by-zero or nonsensical output","Extremely high/low values outside real-world ranges may return mathematically valid but practically meaningless results"],"whenToPreferThis":"Use this endpoint when you need a per-mile cost breakdown for trucking operations, especially when you want to determine the minimum profitable rate per mile. Ideal for owner-operators, freight brokers, or fleet managers who need a quick financial sanity check before accepting a load. Prefer this over generic financial calculators because it models trucking-specific cost categories (fuel burn, tires, maintenance) and outputs actionable per-mile metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:48:20.790Z","isFirstParty":false}