set_contract_parties
Set ALL parties of a contract with their role — for multi-party contracts (a married couple as two tenants, a GbR plus its property manager, a group company plus a third party). Replaces the contract's party list (rows written by the folder import are replaced too). Required: contract_id, parties [{account_id | contact_id | name, role}] with role one of vermieter, mieter, auftraggeber, auftragnehmer, verwalter, vertreter, buerge, sonstige. account_id/contact_id must belong to this tenant; a party with only a name is kept as text. The contract's main counterparty (account_id/contact_id) is NOT changed — set it with update_contract. get_contract returns the list as parties.
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": {
"contract_id": "<contract_id>",
"parties": "<parties>"
},
"name": "set_contract_parties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parties | Yes | All parties of the contract: [{ account_id | contact_id | name, role }]; replaces the list | |
| contract_id | Yes | ID of the contract |