Analyze Wins and Losses
get_win_lossExplain why deals were won or lost and identify possible improvements to sales execution. Return Data Parrot's prepared closed-deal analysis grouped into win/loss reasons, sales performance factors, and buyer decision factors, with attribution, ranking, and supporting-deal evidence. Use it to identify reasons associated with the most deals or revenue. Preserve unknown reasons and distinguish attributed explanations from proven causes.
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": {
"deal_statuses": "<deal_statuses>"
},
"name": "get_win_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| team_ids | No | Exclusive selector: non-empty exact team IDs, expanded to active owners. Use instead of owner_scope or owner_ids. | |
| owner_ids | No | Exclusive selector: non-empty exact IDs from the owners catalog. Use instead of owner_scope or team_ids. | |
| page_size | No | ||
| date_range | No | Optional inclusive close-date range; omit for all available history. | |
| owner_scope | No | Exclusive selector: all owners or current authenticated user. Omitting all three owner selectors defaults to all workspace owners. | |
| pipeline_ids | No | ||
| deal_statuses | Yes | ||
| signal_rank_by | No | Win/Loss rank metric. | primary_count |
| group_page_size | No | ||
| custom_properties | No | ||
| signal_attribution_mode | No | primary counts the principal attributed reason; influenced counts each associated signal. | primary |
| include_supporting_deals | No | Expose supporting-deal continuations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| kind | Yes | ||
| tool | Yes | ||
| summary | Yes | ||
| result_id | No | ||
| limitations | No |