updateContract
updateContractUpdate an existing contract by first fetching it, then sending all required fields and phases; call expireContract instead to end or cancel a contract.
Instructions
Update an existing contract. This is a PUT endpoint — you MUST fetch the contract first with getContractById, then send ALL required fields including phases. Without phases the API returns 500. Copy phases from the GET response (each phase needs name, start_date, end_date at minimum). Renewal: renew_with_default_contract, renew_with_existing, do_not_renew. EXPIRY: this tool CANNOT expire, end, terminate or cancel a contract. Contract status is derived from the CONTRACT-LEVEL end_date; phase end_dates never affect it. If the user asks to expire/end/terminate/cancel a contract, or to 'set' or 'update' its expiry date, you MUST call expireContract instead of this tool — it sets the end_date and also prunes future phases, trims overlapping phases and caps product dates, which this tool does not. Setting a past end_date here is rejected.
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": {
"contractId": "<contractId>",
"name": "<name>",
"status": "<status>",
"currency": "<currency>",
"start_date": "<start_date>",
"customer_id": "<customer_id>"
},
"name": "updateContract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the contract. | |
| tags | No | List of tags for categorizing and filtering contracts. | |
| phases | No | Array of contract phases. Each phase needs at minimum: name, start_date, end_date. Include pricings array if the phase has pricing. Defaults to empty array if omitted. | |
| source | No | Metadata about the originating system (e.g. {source_type: 'hubspot', source_id: 'deal_123'}). | |
| status | Yes | Contract status: draft, active, paused, or disputed. 'expired' is not settable here — it is derived from contract-level end_date. Use expireContract to expire a contract. | |
| currency | Yes | Three-letter ISO 4217 currency code (e.g. USD, EUR, GBP). | |
| end_date | No | Contract end date in ISO 8601 format. Drives the effective contract status: a past end_date makes the contract read as EXPIRED. Leave null for an open-ended contract. Prefer expireContract over setting a past end_date here. | |
| contractId | Yes | The unique identifier (UUID) of the contract to update. | |
| start_date | Yes | Contract start date in ISO 8601 format (e.g. 2026-01-01T00:00:00). | |
| anchor_date | No | Reference date for billing cycle calculations. | |
| customer_id | Yes | UUID of the customer associated with this contract. | |
| description | No | Detailed description of the contract terms. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| contract_link | No | URL to external contract document or signed agreement. | |
| renewal_policy | No | Contract renewal behavior: renew_with_default_contract, renew_with_existing, or do_not_renew. | |
| custom_attributes | No | Key-value pairs for organization-specific metadata (e.g. automatic_renewal flag). | |
| include_in_renewal | No | When true, this contract is eligible for renewal processes. | |
| bill_parent_customer | No | When true and customer has a parent relationship, invoices are sent to the parent. | |
| is_last_day_of_month | No | When true, billing cycles always end on the last day of the month. | |
| invoice_payer_customer_id | No | Optional customer UUID who will receive and pay invoices for this contract. |