{"id":"commerce.price-components","version":"1.0.0","category":"commerce","description":"Reconcile item, discount, shipping, tax and fee amounts using exact decimals; missing costs stay unknown and declared totals can be checked.","priceMicroUsdc":0,"priceRevision":"2026-10-06-free-validation","pricingStatus":"free-validation","inputSchema":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"minorUnitDigits":{"type":"integer","minimum":0,"maximum":6},"items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100},"unitPrice":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},"quantity":{"type":"integer","minimum":1,"maximum":100000},"discount":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19}},"required":["id","unitPrice","quantity","discount"],"additionalProperties":false}},"orderDiscount":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},"shipping":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},{"type":"null"}]},"tax":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},{"type":"null"}]},"fees":{"anyOf":[{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},{"type":"null"}]},"declaredTotal":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19}},"required":["currency","minorUnitDigits","items","orderDiscount","shipping","tax","fees"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"currency":{"type":"string"},"minorUnitDigits":{"type":"number"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"subtotal":{"type":"string"},"discount":{"type":"string"},"total":{"type":"string"}},"required":["id","subtotal","discount","total"],"additionalProperties":false}},"itemSubtotal":{"type":"string"},"lineDiscounts":{"type":"string"},"orderDiscount":{"type":"string"},"knownTotal":{"type":"string"},"total":{"type":["string","null"]},"missingComponents":{"type":"array","items":{"type":"string"}},"matchesDeclaredTotal":{"type":["boolean","null"]},"difference":{"type":["string","null"]},"scope":{"type":"string"}},"required":["currency","minorUnitDigits","lines","itemSubtotal","lineDiscounts","orderDiscount","knownTotal","total","missingComponents","matchesDeclaredTotal","difference","scope"],"additionalProperties":false},"example":{"currency":"USD","minorUnitDigits":2,"items":[{"id":"1kg-bag","unitPrice":"16.49","quantity":2,"discount":"0.00"}],"orderDiscount":"2.00","shipping":"4.99","tax":null,"fees":"0.00"},"limits":{"inputBytes":131072,"outputBytes":65536,"networkTimeoutMs":0},"network":false,"sensitive":false,"route":"/v1/tools/commerce.price-components","priceMicroUsd":0,"exampleUrl":"https://agent-utilities.agent-utilities.workers.dev/v1/content/examples/commerce.price-components","page":"https://agent-utilities.agent-utilities.workers.dev/tools/commerce.price-components","execution":{"method":"POST","url":"https://agent-utilities.agent-utilities.workers.dev/v1/tools/commerce.price-components","requiredHeaders":{"Content-Type":"application/json"},"authentication":"none","paymentRequired":false,"chargedMicroUsd":"0","scope":"All available hosted tools are free during validation. Existing input, output and source-access limits apply. Full tools and the combined report share capacity limits that count attempts, including failed executions and marked checks; they are not per-user allowances. No account, API key, wallet or funding is needed. Existing credit balances are preserved. Live Reddit remains unavailable until configured. Paid billing will not resume automatically."}}