Skip to main content
Glama

docugen_answer_decision

Close one open decision of a document (DA-01...) with the answer the user gave you, or accept the DocuGen suggestion as it is by leaving answer out, like the Accept button on screen. DocuGen writes the decision label the open-decisions panel reads ("Decisão:" or "Decision:"), so the panel and docugen_get_document show it as accepted; never close a decision by rewriting its text with your own label. Works like docugen_update_document: pass the revision from docugen_get_document, it opens or continues your edit session and returns the next revision; call docugen_submit_for_review when done. Only answer what the user decided: a suggestion the user did not confirm stays a suggestion. On an approved document it needs reopenApproved: true, like docugen_update_document.

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": {
      "documentId": "<documentId>",
      "decisionId": "<decisionId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "docugen_answer_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerNoThe decision, in one line, in the language of the document. Leave it out to accept the DocuGen suggestion unchanged
decisionIdYesThe decision id as written in the document, e.g. "DA-03"
documentIdYesDocument id
reopenApprovedNoOnly after the user agreed: edit an approved or implemented document. Submitting the edit for review moves it back to in_review and the user has to approve it again
expectedRevisionYesThe revision returned by docugen_get_document

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the side effect (DocuGen writes the decision label the panel and docugen_get_document read), that the call opens or continues an edit session and returns the next revision, and that approved documents need an explicit opt-in that resets them to in_review. It stops short of describing failure modes such as stale revisions or permission requirements.

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?

Content is front-loaded with the core action and each sentence carries real information about behavior or workflow. It is somewhat dense with parenthetical asides and repeats the 'like docugen_update_document' analogy twice, which costs a little economy without obscuring meaning.

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?

No output schema or annotations exist, yet the description explains the return (next revision), the downstream workflow, and approval-state side effects, which is most of what an agent needs. Remaining gaps are error handling and revision-mismatch behavior, which are minor for this mutation tool.

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%, so every parameter including answer, expectedRevision, and reopenApproved is already documented in the schema. The description reinforces the accept-the-suggestion behavior and the source of the revision but adds little semantic detail beyond what the schema says. Baseline 3 applies when the schema does the heavy lifting.

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 ('Close one open decision of a document (DA-01...)') plus the two modes of operation (supply an answer or leave it out to accept the suggestion). It explicitly distinguishes itself from rewriting decision text and from docugen_update_document, so an agent can tell it apart from siblings without opening a schema.

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?

Gives explicit when-to-use conditions: only answer what the user decided, an unconfirmed suggestion stays a suggestion, and an approved document requires reopenApproved: true. It also names the surrounding workflow (get_document for the revision, submit_for_review when finished) and the wrong path to avoid (rewriting the decision text yourself).

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