{"id":"commerce.unit-price","version":"1.0.0","category":"commerce","description":"Compare up to 50 explicit pack prices with exact arithmetic across compatible mass, volume or count units; no currency conversion.","priceMicroUsdc":0,"priceRevision":"2026-10-06-free-validation","pricingStatus":"free-validation","inputSchema":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"reference":{"type":"object","properties":{"quantity":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},"unit":{"type":"string","enum":["mg","g","kg","oz","lb","ml","l","each"]}},"required":["quantity","unit"],"additionalProperties":false},"offers":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100},"price":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},"quantity":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},"unit":{"type":"string","enum":["mg","g","kg","oz","lb","ml","l","each"]},"packCount":{"type":"integer","minimum":1,"maximum":10000}},"required":["id","price","quantity","unit"],"additionalProperties":false}}},"required":["currency","reference","offers"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"currency":{"type":"string"},"reference":{"type":"object","properties":{"quantity":{"type":"string","pattern":"^(0|[1-9]\\d{0,11})(\\.\\d{1,6})?$","maxLength":19},"unit":{"type":"string","enum":["mg","g","kg","oz","lb","ml","l","each"]}},"required":["quantity","unit"],"additionalProperties":false},"offers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"totalQuantity":{"type":"object","properties":{"numerator":{"type":"string"},"denominator":{"type":"string"},"unit":{"type":"string"}},"required":["numerator","denominator","unit"],"additionalProperties":false},"pricePerReference":{"type":"string"},"exactPricePerReference":{"type":"object","properties":{"numerator":{"type":"string"},"denominator":{"type":"string"}},"required":["numerator","denominator"],"additionalProperties":false}},"required":["id","totalQuantity","pricePerReference","exactPricePerReference"],"additionalProperties":false}},"cheapestIds":{"type":"array","items":{"type":"string"}},"scope":{"type":"string"}},"required":["currency","reference","offers","cheapestIds","scope"],"additionalProperties":false},"example":{"currency":"USD","reference":{"quantity":"100","unit":"g"},"offers":[{"id":"500g-bag","price":"8.99","quantity":"500","unit":"g"},{"id":"1kg-bag","price":"16.49","quantity":"1","unit":"kg"}]},"limits":{"inputBytes":131072,"outputBytes":65536,"networkTimeoutMs":0},"network":false,"sensitive":false,"route":"/v1/tools/commerce.unit-price","priceMicroUsd":0,"exampleUrl":"https://agent-utilities.agent-utilities.workers.dev/v1/content/examples/commerce.unit-price","page":"https://agent-utilities.agent-utilities.workers.dev/tools/commerce.unit-price","execution":{"method":"POST","url":"https://agent-utilities.agent-utilities.workers.dev/v1/tools/commerce.unit-price","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."}}