create_contract
Register a contract. Required: title. Optional: contract_type (rental|service|maintenance|lease|insurance|supply|license|loan|purchase|cooperation|employment|nda|other), our_role (customer|provider|landlord|tenant|partner|other — it decides whether a notice period binds US or the other side), counterparty_name, account_id, contact_id (main counterparty), our_account_id (which of OUR group companies is the party), lead_id, starts_on, ends_on, auto_renew, renew_months, notice_months, value_amount, value_currency, value_period, reference, notes, source_root_id + source_file_id (point at the original file in a connected drive instead of copying it), status. Deadlines are derived automatically from ends_on + notice_months, including auto-renewal rolled forward to the next date that is still in the future.
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": {
"title": "<title>"
},
"name": "create_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text notes | |
| title | Yes | Title of the contract | |
| status | No | Initial status | |
| ends_on | No | End date of the contract term (ISO date); basis for derived deadlines | |
| lead_id | No | ID of the lead | |
| our_role | No | Our side in the contract (customer, provider, landlord, tenant, partner, other); decides whom a notice period binds | |
| reference | No | External reference or contract number; used for idempotent imports | |
| starts_on | No | Start date of the contract term (ISO date) | |
| account_id | No | ID of the account (company) | |
| auto_renew | No | Whether the contract renews automatically when not terminated | |
| contact_id | No | ID of the contact | |
| renew_months | No | Length of each automatic renewal in months | |
| value_amount | No | Contract value per value_period | |
| value_period | No | Period the value refers to, e.g. month, quarter, year or once | |
| contract_type | No | Contract type, e.g. rental, service, maintenance, lease, insurance, nda or other | |
| notice_months | No | Notice period in months before the term ends | |
| our_account_id | No | ID of the own company (account) | |
| source_file_id | No | ID of the source file | |
| source_root_id | No | ID of the source root folder | |
| value_currency | No | Currency of the contract value, e.g. EUR or CHF | |
| counterparty_name | No | Name of the other contracting party |