create_deal
Create a new deal in the CRM and assign it to a pipeline stage. Requires a pipeline_id (use list_pipelines to find it), plus at least ONE of account_domain, name, or primary_contact_email. Prefer account_domain or primary_contact_email: a freeform name alone gives the deal nothing findable to attach to, and some callers refuse it outright. The associated account is auto-created and linked by its domain as part of this call (an existing account is reused, never duplicated) - do NOT create the account in a separate step first. If only a PERSON's name is known (e.g. a call attendee, not a company), call search_contacts first and pass their resolved email as primary_contact_email - the account domain is derived from it automatically. Any primary_contact_email/additional_contact_emails must come from a real source (a tool/search result, attachment, email thread, or the user); never guess a name@company address. Use when asked to add a deal, create an opportunity, log a new prospect, or start tracking a sale. For multiple deals at once, prefer bulk_create_deals (creates accounts and contacts inline).
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": {
"pipeline_id": "<pipeline_id>"
},
"name": "create_deal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Deal name. If omitted, auto-generated from account/contact. | |
| stage_id | No | Stage UUID within the pipeline. Defaults to first stage. | |
| deal_size | No | Deal value in dollars | |
| close_date | No | Expected close date as ISO 8601 string | |
| next_steps | No | Description of next steps for this deal | |
| session_id | No | The ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task. | |
| owner_email | No | Email of the deal owner (org member). Defaults to current user. | |
| pipeline_id | Yes | Pipeline UUID from list_pipelines | |
| account_domain | No | Domain of the associated company (must exist in CRM) | |
| next_action_date | No | Next follow-up date as ISO 8601 string | |
| primary_contact_email | No | Email of the primary contact (must exist in CRM) | |
| additional_contact_emails | No | Emails of additional contacts (must exist in CRM) |