aggregate_records
Compute aggregates such as sum, average, min, max, median, and count on numeric fields from Oracle Fusion records. Uses exact decimal arithmetic to avoid float drift on currency values.
Instructions
Compute an aggregate (sum, avg, min, max, median, count, count_nonnull) over a numeric field in a list of records. Use this for ANY arithmetic on Oracle Fusion data — do NOT compute sums, averages, or counts yourself. All math uses exact Decimal arithmetic to avoid float drift on currency values.
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": {
"records": "<records>",
"field": "<field>",
"operation": "<operation>"
},
"name": "aggregate_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field name to aggregate (e.g. 'InvoiceAmount', 'TotalAmount'). | |
| records | Yes | Array of record objects from a previous search tool call. | |
| operation | Yes | Aggregation operation. | |
| decimal_places | No | Decimal places for rounding (default 2). |