import_contract_group
Take one proposed bundle over: creates the contract and attaches every file as a document that POINTS AT the original in the drive (nothing is copied — a copy ages and would have to be deleted when the original is, which nobody notices). Required: root_id, title, files (array of {file_id, name, role} as returned by scan_contract_files). Optional: every field of create_contract (ends_on, notice_months, auto_renew …) — the deadlines are then derived immediately. Returns the contract with its deadlines and the attached documents.
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": {
"root_id": "<root_id>",
"title": "<title>",
"files": "<files>"
},
"name": "import_contract_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files of the bundle as returned by scan_contract_files | |
| notes | No | Free-text notes | |
| title | Yes | Title of the contract to create | |
| ends_on | No | End date of the contract term (ISO date); basis for derived deadlines | |
| root_id | Yes | ID of the root folder | |
| 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 | |
| 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 | |
| value_currency | No | Currency of the contract value, e.g. EUR or CHF | |
| counterparty_name | No | Name of the other contracting party |