{"id":"length-compare","version":"1.0.0","description":"Compare two integer length measurements by exact nanometer amounts.","supported_operations":["length compare","compare length measurements","compare two integer lengths"],"unsupported_operations":["sort a list of lengths","approximate comparison","nautical miles","floating-point lengths"],"semantics":["left and right are objects with a canonical integer value and a length unit.","Units are exactly nm, um, mm, cm, m, km, in, ft, yd, mi using the LENGTH_NM table.","Each side is converted to nanometers as a BigInt and those amounts are compared.","cmp is the JSON integer -1, 0, or 1 according as left is less than, equal to, or greater than right.","Negative values are allowed; input -0 is canonicalized to 0."],"limits":{"max_digits":1000,"units":["nm","um","mm","cm","m","km","in","ft","yd","mi"]},"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":["nm","um","mm","cm","m","km","in","ft","yd","mi"]}}},"right":{"type":"object","additionalProperties":false,"required":["value","unit"],"properties":{"value":{"type":"string","pattern":"^-?(0|[1-9][0-9]*)$","maxLength":1001},"unit":{"type":"string","enum":["nm","um","mm","cm","m","km","in","ft","yd","mi"]}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["cmp"],"properties":{"cmp":{"type":"integer","enum":[-1,0,1]}}},"examples":[{"input":{"left":{"value":"1","unit":"m"},"right":{"value":"1","unit":"yd"}},"output":{"cmp":1}}],"execute_url":"/v1/tools/length-compare/versions/1.0.0/execute"}