{"id":"mass-compare","version":"1.0.0","description":"Compare two mixed-unit canonical integer mass amounts using exact nanogram BigInt values.","supported_operations":["mass compare","compare mass quantities","compare grams and pounds"],"unsupported_operations":["sort a list of masses","approximate or rounded compare","locale unit names","troy or stone units","floating-point mass"],"semantics":["left and right are objects with a canonical integer string value and a mass unit.","Units are exactly ng, ug, mg, g, kg, t, oz, and lb; t is the metric tonne, lb is avoirdupois, oz is 1/16 lb.","Each amount is converted to nanograms as BigInt; comparison is the numeric order of those nanogram values.","cmp is the JSON integer -1, 0, or 1 according as left is less than, equal to, or greater than right.","Negative amounts are allowed; -0 canonicalizes to 0.","Unknown fields, unknown units, and non-canonical integers are rejected."],"limits":{"max_digits":1000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["left","right"],"properties":{"left":{"type":"object","additionalProperties":false,"required":["value","unit"],"properties":{"value":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"unit":{"type":"string","enum":["ng","ug","mg","g","kg","t","oz","lb"]}}},"right":{"type":"object","additionalProperties":false,"required":["value","unit"],"properties":{"value":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"unit":{"type":"string","enum":["ng","ug","mg","g","kg","t","oz","lb"]}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["cmp"],"properties":{"cmp":{"type":"integer","enum":[-1,0,1]}}},"examples":[{"input":{"left":{"value":"1","unit":"lb"},"right":{"value":"16","unit":"oz"}},"output":{"cmp":0}}],"execute_url":"/v1/tools/mass-compare/versions/1.0.0/execute"}