bulk_update_contracts
Change up to 200 contracts in ONE call: per item { contract_id, account_id?, contact_id?, our_account_id?, our_role?, status?, counterparty_name?, contract_type?, custom_values?: { key: value } }. Each item goes through update_contract and set_custom_values, so the same rights, field rights, approvals and history apply as for single calls. One bad item does not stop the others. Returns { ok, failed, errors: [{contract_id, error}] } — no records, so it stays small.
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": {
"items": "<items>"
},
"name": "bulk_update_contracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Up to 200 changes, each { contract_id, ... } with the fields to set |