{"id":"stats-histogram","version":"1.0.0","description":"Count decimal-string values in caller-supplied fixed bins and return below- and above-range totals.","supported_operations":["build a fixed bin histogram","count values in numeric ranges","bucket decimal string values","histogram with custom edges","count below and above bins","frequency table for fixed intervals"],"unsupported_operations":["automatic bin selection","weighted histogram"],"semantics":["Bins are left-closed and right-open, except the final bin is closed at both ends.","Values outside the edge range are counted in below or above; decimal comparisons are exact."],"limits":{"max_input_bytes":16384,"max_items":256,"max_bin_edges":65,"max_decimal_chars":128,"max_output_bytes":16384,"max_bin_comparisons":4096},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["values","bin_edges"],"properties":{"values":{"type":"array","minItems":1,"maxItems":256,"items":{"type":"string","minLength":1,"maxLength":128}},"bin_edges":{"type":"array","minItems":2,"maxItems":65,"items":{"type":"string","minLength":1,"maxLength":128}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["standard_version","counts","below","above"],"properties":{"standard_version":{"type":"string","const":"packet-r90-fixed-bin-histogram-1.0.0"},"counts":{"type":"array","items":{"type":"integer","minimum":0}},"below":{"type":"integer","minimum":0},"above":{"type":"integer","minimum":0}}},"examples":[{"input":{"values":["0","1","2","3"],"bin_edges":["0","2","3"]},"output":{"standard_version":"packet-r90-fixed-bin-histogram-1.0.0","counts":[2,2],"below":0,"above":0}},{"input":{"values":["-1","4"],"bin_edges":["0","2","3"]},"output":{"standard_version":"packet-r90-fixed-bin-histogram-1.0.0","counts":[0,0],"below":1,"above":1}}],"execute_url":"/v1/tools/stats-histogram/versions/1.0.0/execute"}