collection_sort
Sort a list of items in ascending or descending order based on the reverse flag.
Instructions
Sort a list of items.
Args: items: The list to sort. reverse: If True, sort in descending order.
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": {
"items": "<items>"
},
"name": "collection_sort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| reverse | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |