List contracts
list_contractsList the contracts filed in this account (documents with document_type 'contract': Mietvertrag, Mieterrechnung, Darlehens-/Gesellschaftervertrag …) with their terms from metadata.contract — nummer, beginn, ende (null = unbefristet), betrag per turnus, kuendigungsfrist, notiz and the sevDesk voucher ids (belege) booked under the contract. Read-only. Contracts are Dauerbelege for recurring bookings and are never pushed to sevDesk. File a new one with create_invoice_upload_url document_type:'contract'; change the terms with update_document (metadata.contract).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_contracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (default 100, max 500). | |
| active_on | No | Only contracts running on this date (YYYY-MM-DD): beginn <= date and ende empty or >= date. | |
| vendor_name | No | Only contracts whose Vertragspartner (vendor_name) contains this text, case-insensitive. |