{"id":"integer-digit-sum","version":"1.0.0","description":"Sum the base-b digits of the magnitude of an integer string.","supported_operations":["integer digit sum","sum of digits","digit sum in a base"],"unsupported_operations":["digital root","digit sum of a fraction","digit product"],"semantics":["value is a canonical integer string: 0 or an optional ASCII minus followed by a non-zero leading digit, at most 1000 digits excluding sign.","base is a JSON integer from 2 to 36; when omitted it defaults to 10.","The sign of value is ignored: the digit sum is computed on the magnitude |value|.","value 0 has digit sum 0 in every base.","The result is one pass of summing base-b digits (not repeated to a single digit; see integer-digital-root for that).","digit_sum is returned as a JSON integer."],"limits":{"max_digits":1000,"min_base":2,"max_base":36},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","maxLength":1001},"base":{"type":"integer","minimum":2,"maximum":36,"default":10}}},"output_schema":{"type":"object","additionalProperties":false,"required":["digit_sum"],"properties":{"digit_sum":{"type":"integer","minimum":0}}},"examples":[{"input":{"value":"12345"},"output":{"digit_sum":15}}],"execute_url":"/v1/tools/integer-digit-sum/versions/1.0.0/execute"}