Aggregate session metrics
aggregate_sessionsAggregate sessions inside Flowlines at a stable snapshot. Use this for grouped totals and rates instead of downloading sessions through list_sessions.
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": {
"reason": "<reason>",
"user_intent": "<user_intent>",
"namespace_id": "<namespace_id>",
"range": "<range>",
"group_by": "<group_by>",
"metrics": "<metrics>"
},
"name": "aggregate_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size. Defaults to 20. | |
| range | Yes | Preset aggregation window ending at the snapshot time. all includes all available history. Custom from/to timestamps are not supported by this tool. | |
| cursor | No | Opaque cursor from a previous page. | |
| reason | Yes | A short phrase saying why you are calling this tool, for example: find unpaid invoices. | |
| filters | No | ||
| metrics | Yes | Metrics to compute per group. | |
| group_by | Yes | Dimensions to group by. | |
| order_by | No | ||
| cohort_ids | No | ||
| user_intent | Yes | One sentence describing what the user is trying to accomplish. Keep it the same across calls until the user's goal changes. | |
| namespace_id | Yes | Flowlines namespace UUID. | |
| include_unidentified | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| notice | No | ||
| truncation | Yes |