Skip to main content
Glama

Create document

create_document

Create finished Word, PDF, PowerPoint, Excel or artifact documents from a written prompt or Markdown, and get download links when ready.

Instructions

Create a finished document: Word, PDF, PowerPoint, Excel or an artifact (a web page with its own shared database, e.g. a poll or a team checklist). Choose only the format: Doconda works out what kind of document it is (contract, letter, report…) from the request. Give prompt to have it written, or markdown with the content already written. Waits until it is ready and returns download links; after about 4 minutes it returns its id and status instead: call get_document later.

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": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoArtifacts only. shared (default): everyone with the link sees the same data (polls, team lists). local: each visitor keeps their own in their browser (calculators, personal checklists). With retention none, only local.
nameNoOptional: a name to find it later, e.g. 'Contrato piso Malasaña'. It also names the files.
styleNoOptional: the look in plain words, e.g. 'blue centred headings, Lora font, page numbers, table of contents'.
formatNodocx → Word (+ PDF); pdf → only the PDF; pptx → PowerPoint (+ PDF); xlsx → Excel (+ PDF); artifact → web page. If the user didn't say, leave it out and Doconda decides from the prompt.
promptNoWhat to write, in the user's words (topic, audience, length, tone). Formatting wishes too, e.g. 'blue centred headings, with a cover page'.
qualityNoOptional. fast: the cheapest and quickest (about a minute), any style, but it can't copy a file's design. standard: more care, takes minutes. best: the highest quality and price, e.g. to copy a file's design or to edit with comments or tracked changes. auto (default): Doconda picks the level the request needs. The price of the highest level it may use is held from the balance while the document is made and what is not used is returned: with a low balance, pick fast or set max_quality.
markdownNoContent already written, in Markdown (instead of prompt). For an artifact, the content its page shows.
retentionNoOptional: how long Doconda keeps it once finished (none = 15 minutes). Without it, the project's retention (30 days unless changed). The user should save the file before then.
max_qualityNoOnly with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard.
source_file_idsNoUploaded files (upload_file) or documents already made (their id, from list_documents): documents to base the text on (up to 5, with prompt) and pictures to put in the document (up to 10; with markdown, refer to them as ![caption](img:1), the first picture).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.5
    • addedInput schema / properties / max_quality
      Added value: +{
      +  "description": "Only with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard.",
      +  "enum": [
      +    "fast",
      +    "standard",
      +    "best"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / quality
      Added value: +{
      +  "description": "Optional. fast: the cheapest and quickest (about a minute), any style, but it can't copy a file's design. standard: more care, takes minutes. best: the highest quality and price, e.g. to copy a file's design or to edit with comments or tracked changes. auto (default): Doconda picks the level the request needs. The price of the highest level it may use is held from the balance while the document is made and what is not used is returned: with a low balance, pick fast or set max_quality.",
      +  "enum": [
      +    "auto",
      +    "fast",
      +    "standard",
      +    "best"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the asynchronous contract: it waits for completion, returns download links, but after roughly four minutes returns an id plus status instead. It also discloses billing behavior (the top-tier price is held from the balance and refunded) and retention semantics, none of which appear in the annotations. Nothing contradicts readOnlyHint=false, idempotentHint=false, or destructiveHint=false.

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?

Front-loads the core action and format list, then the input-mode choice, then the timeout behavior and recovery path. Density is justified given ten parameters and an async response model, though a few clauses (the artifact definition, the pricing aside) run long and could be tightened.

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

Completeness4/5

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

For a zero-required-parameter creation tool with no output schema, the description covers the important unknowns: what is returned, how long the call blocks, what to do on timeout, cost/quality tradeoffs, and retention expiry. Minor gaps remain around failure behavior and how multiple source files are ordered beyond the img:N convention, but nothing essential to a correct invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning the schema does not: it establishes prompt and markdown as mutually exclusive alternatives and warns to leave format out so the service infers it. That is real routing guidance rather than restatement, though most per-field detail still lives in the schema.

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

Purpose5/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 finished document') and enumerates the exact output formats including the non-obvious 'artifact' with a parenthetical definition. It also names the follow-up sibling (get_document) so the agent can place this tool in a workflow rather than confuse it with convert_file or edit_document.

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

Usage Guidelines5/5

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

Explicitly routes between the two content modes ('Give `prompt` to have it written, or `markdown` with the content already written') and tells the agent to 'Choose only the format' rather than classify the document type. It also states the fallback path when the call times out ('call get_document later') and mentions quality/price tradeoffs including max_quality for low balances.

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