Skip to main content
Glama

Create draft document

create_draft_document

Create 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

NameRequiredDescriptionDefault
titleNoBecomes the H1 of the document and the file name, e.g. "Fachkonzept" → 01_Fachkonzept.pdf.
contentYesMarkdown. Headings, tables, lists, fenced blocks and mermaid are understood; «…» marks an open gap and is highlighted in the PDF.
variantNoIn vergabeverfahren, sentences that conflict with procurement rules are removed from the rendered PDF and listed in the answer.
versionNo
doc_kindNoDefault 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_idYes
sort_orderNoPosition in the submission folder; also the two-digit prefix of the file name.
is_internalNoInternal: the rendered PDF shows only in INTERNAL share links, never in external ones. Default false — submission documents are for the customer.
source_pathNoWhere the text came from, for the record.
document_dateNoJJJJ-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_keyNoA letterhead profile other than the tenant's default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, non-open-world creation call, so the safety profile is covered. The description adds genuine behavioral context beyond that: file-name numbering derives from sort_order and the contracting authority reads the folder in file-name order. It stops short of what an agent would most want for a create tool — whether repeat calls produce duplicates (idempotentHint is false), what gets created in the returned object, and whether existing drafts are affected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action and followed by the conditional parameter advice. It is dense but not padded; the only friction is the compressed parenthetical list of German document kinds and the phrase 'plan document of the submission folder', which takes a moment to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters, 82% schema coverage, annotations, and no output schema, the description covers the main job and the folder-ordering consequence, so the schema does most of the remaining work. Gaps remain for a moderately complex create operation: no mention of how version, source_path, or is_internal interact (is_internal is behaviorally significant since it hides the PDF from external share links), and no note on repeat-call behavior despite idempotentHint being false.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 82%, so the schema already carries most parameter meaning, including the title-to-filename mapping, sort_order as the two-digit prefix, and the DIN 5008 letter behavior. The description's title/sort_order sentence largely restates that. It does add the linkage between sort_order, folder numbering, and how the authority reads the folder, which is a marginal gain over the structured data rather than new syntax or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — create a Markdown source document for a tender — and splits it into two recognizable cases: draft proposal text, or a plan document for the submission folder with named document kinds. An agent knows what it produces, but the description never distinguishes it from siblings like create_tender_document, create_grant_document, or update_draft_document, so the reader cannot rule out the alternatives from this text alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second sentence gives conditional usage guidance for two parameters: supply title and sort_order when the document belongs in the folder, because numbering and reader order derive from them. That is useful situational advice but it is about how to fill parameters, not about when to choose this tool over update_draft_document or another create_* document tool; there are no explicit exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources