segmentation_sum
Calculate total sums of numeric event properties over time to track metrics like revenue. Specify event, date range, and property to sum.
Instructions
Get the sum of a numeric event property over time. Useful for tracking totals like revenue.
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": {
"event": "<event>",
"from_date": "<from_date>",
"to_date": "<to_date>",
"on": "<on>"
},
"name": "segmentation_sum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | Event name | |
| from_date | Yes | Start date (YYYY-MM-DD) | |
| to_date | Yes | End date (YYYY-MM-DD) | |
| on | Yes | Numeric property to sum (e.g. "properties[\"amount\"]") | |
| unit | No | Time unit for bucketing | |
| where | No | Filter expression |