Create draft document
create_draft_documentCreate a Markdown source for a tender: draft proposal text, or a plan document of the submission folder (Anschreiben, Fachkonzept, Anlage, Eigenerklärung). Give it a title and a sort_order when it belongs in the folder — the order and the numbering of the file names come from there, and the contracting authority reads the folder in file-name order.
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": {
"tender_id": "<tender_id>",
"content": "<content>"
},
"name": "create_draft_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Becomes the H1 of the document and the file name, e.g. "Fachkonzept" → 01_Fachkonzept.pdf. | |
| content | Yes | Markdown. Headings, tables, lists, fenced blocks and mermaid are understood; «…» marks an open gap and is highlighted in the PDF. | |
| variant | No | In vergabeverfahren, sentences that conflict with procurement rules are removed from the rendered PDF and listed in the answer. | |
| version | No | ||
| doc_kind | No | Default anlage. anschreiben is set as a business letter after DIN 5008 form B: address field for a DL window envelope (20/45 mm, 85 x 45 mm) with return address, information block on the right, bold subject instead of a heading, frame text of the profile variant after the salutation. The address comes from a front matter at the very start of content — ---\nempfaenger:\n - Firma GmbH\n - z. Hd. Herrn Name\n - Strasse 1\n - 12345 Ort\nbetreff: Angebot …\n--- — otherwise from the company with role tender_owner at the tender; without either the field stays empty and the answer warns. Without betreff, a leading # heading becomes the subject. Two trailing spaces or a trailing backslash make a line break inside a paragraph (signature blocks). | |
| tender_id | Yes | ||
| sort_order | No | Position in the submission folder; also the two-digit prefix of the file name. | |
| is_internal | No | Internal: the rendered PDF shows only in INTERNAL share links, never in external ones. Default false — submission documents are for the customer. | |
| source_path | No | Where the text came from, for the record. | |
| document_date | No | JJJJ-MM-TT, the date printed on page 1. Left out, the first render sets it and every later run reuses it, so the PDF stays reproducible. | |
| letterhead_profile_key | No | A letterhead profile other than the tenant's default. |