create_deal
Creates a new sales deal with a comp plan ID, opportunity name, and close date; starts in draft status and derives the rep from the comp plan for logging closed deals or opportunities.
Instructions
Create a new sales deal. Requires comp_plan_id, opportunity_name, and close_date. The rep (user_id) is automatically derived from the comp plan's assigned user. Deal starts in 'draft' status. Commission is calculated upon approval based on the comp plan's arr_variable_percentage and accelerators. Use when logging a newly closed deal or entering an opportunity.
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": {
"comp_plan_id": "<comp_plan_id>",
"opportunity_name": "<opportunity_name>",
"close_date": "<close_date>"
},
"name": "create_deal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional notes or context about the deal (e.g., deal terms, customer details). | |
| deal_type | No | Type of deal. 'new_business' = net-new customer, 'renewal' = existing contract renewing, 'expansion' = upsell/add-on to existing customer. Default: 'new_business'. | |
| arr_amount | No | Annual Recurring Revenue amount in dollars (e.g., 50000 for $50,000 ARR). Default: 0. | |
| close_date | Yes | Deal close date in ISO 8601 format (YYYY-MM-DD). Required. Used for commission period calculations. | |
| comp_plan_id | Yes | ID of the compensation plan governing this deal. The rep's user_id is derived from this plan. Required. | |
| contract_term | No | Contract term length in months (e.g., 12 for annual, 24 for 2-year). Default: 12. | |
| custom_fields | No | Optional JSON object for any additional custom data fields associated with this deal. | |
| customer_name | No | Name of the customer/account. Optional. | |
| opportunity_name | Yes | Name of the deal or opportunity (e.g., 'Acme Corp - Enterprise Plan'). Required. | |
| primary_metric_value | No | Primary metric value for this deal (usage varies by plan type). Default: 0. | |
| secondary_metric_value | No | Secondary metric value for this deal (usage varies by plan type). Default: 0. |