Skip to main content
Glama

Edit document

edit_document

Edit uploaded Word, PowerPoint, Excel, or PDF files according to instructions; apply only requested changes and return the updated file plus a change report.

Instructions

Change an uploaded Word, PowerPoint, Excel or PDF file as asked (e.g. 'blue headings and add a confidentiality clause'). Only what is asked changes; the rest stays identical. Returns the new file (after about 4 minutes, its id and status instead: call get_document later); get_report lists every change, with the text before and after.

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": {
      "file_id": "<file_id>",
      "instructions": "<instructions>"
    },
    "name": "edit_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesFrom upload_file, or the id of a document Doconda made (list_documents).
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.
max_qualityNoOnly with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard.
instructionsYesWhat to change, in the user's words.

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.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it promises that 'only what is asked changes; the rest stays identical' (a preservation guarantee that destructiveHint=false alone does not convey), discloses the async ~4-minute path where the call returns id and status instead of the file, and points to get_report for a before/after change list. That is exactly the kind of context an agent needs for a long-running mutation.

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-loaded with the core action and scope, with every clause carrying information. The return-value sentence is heavily compressed ('after about 4 minutes, its id and status instead: call get_document later') and reads awkwardly, but no sentence is filler.

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

Completeness5/5

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

There is no output schema, and the description compensates fully: it states the return (the new file), the timeout/async fallback and which tool to call next, plus where the change log lives. For a 4-parameter mutation tool that is complete enough to invoke correctly.

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 coverage is 100%, and the schema already explains file_id provenance, the quality enum levels, the max_quality cap and the balance-hold pricing. The description adds no parameter meaning of its own — it only gestures at 'as asked' for instructions — so the baseline 3 applies.

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 — 'Change an uploaded Word, PowerPoint, Excel or PDF file' — and enumerates the supported formats, which cleanly separates it from create_document, convert_file and upload_file. The example ('blue headings and add a confidentiality clause') makes the operation concrete.

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

Usage Guidelines4/5

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

Implies the use case clearly (modify an already-uploaded file per user instructions) and routes the agent to the right follow-up tools: get_document when the response returns only id and status, get_report to see the diff. It stops short of naming when to prefer a sibling such as create_document or convert_file, so no explicit exclusions are given.

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