map_reduce_mr_sort
Sort a JSON array by a specified field, ascending by default, with an option to reverse the order.
Instructions
[map_reduce] Sort a JSON array by a field (ascending by default).
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": {
"data": "<data>",
"field": "<field>"
},
"name": "map_reduce_mr_sort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| field | Yes | ||
| reverse | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |