list_deals
Lists and filters sales deals by status, sales rep, or close-date range, returning pipeline and commission details to review closed, pending, approved, or rejected deals.
Instructions
List and filter sales deals. Returns deal fields including opportunity_name, arr_amount, total_commission, arr_commission, wnc_commission, status (draft/pending/approved/rejected), user_id, comp_plan_id, customer_name, close_date, deal_type, and contract_term. Use when the user asks about deals, pipeline, revenue, or wants to see what's been closed, pending, or approved. Filter by status, user_id, or date range.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_deals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (default: 1). | |
| status | No | Filter by deal status. 'draft' = entered but not submitted, 'pending' = submitted awaiting approval, 'approved' = approved and commission calculated, 'rejected' = not counting toward commissions. | |
| date_to | No | Filter deals with close_date on or before this date (ISO 8601 format: YYYY-MM-DD). | |
| user_id | No | Filter deals by a specific sales rep's user ID. Use list_users to find user IDs. | |
| per_page | No | Number of results per page (default: 25, max: 100). | |
| date_from | No | Filter deals with close_date on or after this date (ISO 8601 format: YYYY-MM-DD). |