{"id":"rational-power","version":"1.0.0","description":"Raise a rational number to an integer exponent and return the exact reduced result.","supported_operations":["rational power","rational exponentiation","raise a fraction to an integer power","integer power of a rational"],"unsupported_operations":["rational exponent","fractional exponent","nth root","floating-point power"],"semantics":["base is an object with canonical integer-string numerator and denominator fields; denominator must be a positive canonical integer.","exponent is a JSON integer from -1000 to 1000 inclusive.","base^0 is 1/1 for every base, including base 0/1 (0^0 is defined as 1 by this contract).","A negative exponent requires a non-zero base numerator; base 0 with a negative exponent is rejected as undefined.","The result is computed by exact exponentiation by squaring and reduced by gcd, sign only on the numerator.","Every intermediate and the final numerator and denominator may have at most 1000 digits excluding sign."],"limits":{"max_digits":1000,"max_abs_exponent":1000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["base","exponent"],"properties":{"base":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string","maxLength":1001},"denominator":{"type":"string","maxLength":1001}}},"exponent":{"type":"integer","minimum":-1000,"maximum":1000}}},"output_schema":{"type":"object","additionalProperties":false,"required":["numerator","denominator"],"properties":{"numerator":{"type":"string"},"denominator":{"type":"string"}}},"examples":[{"input":{"base":{"numerator":"2","denominator":"3"},"exponent":3},"output":{"numerator":"8","denominator":"27"}}],"execute_url":"/v1/tools/rational-power/versions/1.0.0/execute"}