draft_offer
Start a quote. Required: exactly one of lead_id, account_id or contact_id. Recipient and address are filled from that record; the price list's standard lines are proposed with quantity 1 for a human to correct. Optional: title, valid_days (default 30), currency (default: CHF for a Swiss recipient, else EUR), country (ISO code; default from the record, else the seller's), language (de|en), tax_note, address, intro, asbest_project_id, and lines to give the positions outright: [{name, description?, unit?, quantity, unit_price, vat_rate?, discount_percent?}]. unit_price is in MAIN units of the currency — 100 means 100,00 €, NOT 1,00 € — or give unit_price_minor in cents. A line without vat_rate gets the recipient's default: 19 % for a German recipient of a German seller, 8.1 % in Switzerland, 0 % with reverse charge (EU business with VAT id) or for export. Numbers, date and tax text follow the recipient's country. Nothing is sent, and no prices are invented — an empty price list produces a quote with no positions and says so.
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": "draft_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intro | No | Introductory text printed above the positions | |
| lines | No | Quote positions: name, quantity, unit_price (main units) and optional fields | |
| title | No | Title of the offer | |
| address | No | Postal address | |
| country | No | ISO code of the recipient's country, e.g. DE, AT, CH. | |
| lead_id | No | ID of the lead | |
| currency | No | Currency code (ISO 4217, e.g. EUR) | |
| language | No | de or en. Default from the country. | |
| tax_note | No | Overrides the derived tax note (reverse charge, export). | |
| account_id | No | ID of the account (company) | |
| contact_id | No | ID of the contact | |
| valid_days | No | Days the quote stays valid; default 30 | |
| asbest_project_id | No | ID of the asbest project |