{"uid":"cap_CizGMHEKmDjHKY-fWG1A5","slug":"crafting-cost-calculator-17bf9be3","name":"Crafting Cost Calculator","description":"Crafting cost calculator: Calculate total crafting cost from quantities and per-unit costs.","url":"https://market.datapackvibe.com/x402/crafting-cost-calculator?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"quantities":{"type":"array","items":{"type":"number"},"default":[2,3,1]},"unit_costs":{"type":"array","items":{"type":"number"},"default":[5,2,12]}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5XSGpxnjsUueNXFfo4RCz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates total crafting cost by multiplying item quantities with their per-unit costs and summing the results.","exampleAgentPrompt":"What's the total crafting cost if I need 2 swords at 5 gold each, 3 shields at 2 gold each, and 1 helmet at 12 gold?","exampleUseCases":[{"title":"RPG recipe cost estimation","prompt":"I have a crafting recipe that needs 4 iron ingots at 3 gold each, 2 leather strips at 1.5 gold each, and 5 wooden planks at 0.8 gold each — what's the total cost to craft it?"},{"title":"Game economy balancing","prompt":"For playtesting my game's economy, calculate the total material cost when quantities are [10, 5, 20] and unit costs are [1.5, 4, 0.75] per unit."},{"title":"Inventory purchase planning","prompt":"I want to stock up on crafting materials: 3 units of compound A at $8 each, 7 units of compound B at $1.50 each, and 2 units of compound C at $20 each — can you tell me the total cost?"}],"resultDescription":"Returns a single total crafting cost value computed as the dot product of the quantities and unit_costs arrays (sum of each quantity multiplied by its corresponding unit cost).","failureModes":["Mismatched array lengths between quantities and unit_costs may return an error or partial result","Non-numeric values in arrays will cause validation errors","Empty arrays may return zero or an error","Negative quantities or costs may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable server-side calculation of total crafting cost from parallel arrays of item quantities and per-unit prices — especially useful in game development pipelines, automation workflows, or agent systems that need to avoid implementing arithmetic locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:47:38.114Z","isFirstParty":false,"canonicalSlug":"crafting-cost-calculator-17bf9be3"}