Aggregate Opportunities
aggregate-opportunities-toolAggregate opportunity counts and pipeline amount by stage or company, with optional creation-date bounds.
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": {
"group_by": "<group_by>"
},
"name": "aggregate-opportunities-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | Include opportunities created on or before this date (YYYY-MM-DD). | |
| group_by | Yes | Group opportunities by stage or company. | |
| date_from | No | Include opportunities created on or after this date (YYYY-MM-DD). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| group_by | Yes | ||
| truncated | Yes | ||
| total_count | Yes | ||
| total_amount | Yes |