capsule_create_opportunity
Create a new Capsule CRM opportunity by assigning a name, contact, and milestone, then set its value, owner, tags, and custom fields.
Instructions
Create a new opportunity in Capsule CRM
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": {
"name": "<name>",
"partyId": "<partyId>",
"milestoneId": "<milestoneId>"
},
"name": "capsule_create_opportunity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the opportunity | |
| tags | No | Tags to assign to the opportunity | |
| value | No | The value of the opportunity | |
| teamId | No | ID of the team this opportunity should be assigned to | |
| tracks | No | Tracks to apply to the opportunity | |
| ownerId | No | ID of the user who should own this opportunity | |
| partyId | Yes | ID of the main contact (party) for this opportunity | |
| duration | No | Duration of the opportunity (must be null if durationBasis is FIXED) | |
| description | No | Description of the opportunity | |
| milestoneId | Yes | ID of the milestone/stage for this opportunity | |
| probability | No | Probability of winning (0-100) | |
| customFields | No | Custom fields for the opportunity | |
| lostReasonId | No | ID of the lost reason (if the opportunity is lost) | |
| durationBasis | No | Time unit used by the duration field | |
| expectedCloseOn | No | Expected close date (YYYY-MM-DD) |