bucket_sort
Sorts an array of numbers by distributing values into configurable buckets, sorting each bucket, and concatenating the results into ordered output.
Instructions
Sort numbers using the bucket sort algorithm. Distributes elements into buckets, sorts each, then concatenates.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"array": "<array>"
},
"name": "bucket_sort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | Array of numbers to sort | |
| bucket_count | No | Number of buckets (default: sqrt of array length) |