upsert_opportunity
Create or update a CRM opportunity by matching on pipeline and contact, so duplicate records are avoided while stage, status, value, and assignee stay current.
Instructions
Create or update an opportunity. Matches by pipeline + contact.
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": {
"pipelineId": "<pipelineId>",
"pipelineStageId": "<pipelineStageId>",
"contactId": "<contactId>",
"name": "<name>"
},
"name": "upsert_opportunity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Opportunity name | |
| status | No | open | |
| contactId | Yes | Contact ID | |
| assignedTo | No | Assigned user ID | |
| pipelineId | Yes | Pipeline ID | |
| monetaryValue | No | Monetary value | |
| pipelineStageId | Yes | Pipeline stage ID |