Skip to main content
Glama

docugen_get_document

Read a document. Returns the Markdown content, the list of section headings and a revision string that you MUST pass back when you next update this document. Also returns fidelityCheck from the latest completed generation (null for documents not generated or not checked; a check is also recorded when the context was cut, even for types otherwise not checked): with status "review", check missingIds (identifiers from the input absent in the document), foreignScript (passages in another alphabet, which usually means another language slipped in), truncated (the generation stopped at the size limit and the end may be missing), internalConflicts (two parts of the document that contradict each other), inputConflicts (where the document contradicts an explicit decision of the input, such as a validation in the wrong endpoint), coverageFindings (ids without the link they need: rule without requirement, restriction without criterion, criterion without test, decision without status, possibly wrong reference, requirement restating its rule, decided item marked (inferred)) and coverageWarnings; coverageOmitted, when present, counts findings that did not fit in the list, and the jev scores (changedRule or missingCriteria at 0.7 or above mean a rule from the input may have changed or a criterion may be missing), fix the document where needed and only then ask for approval. Before that, DocuGen already fixed what its input decides (the approved parent, or the description for a BND): autoFixed lists those fixes (the version before them is in the history as "AI generated"), and opportunities lists what the input leaves open; bring those to the user as decisions, not errors. openDecisions lists each open decision of the parent document (id, question, status, answer, reason, conflict): answered came from the notes after approval; suggested is an answer suggested by DocuGen, which the user must confirm, so bring it to them as a decision to confirm, never as decided; accepted was confirmed or edited by the user; needs_client needs an answer only the user has (reason says what is missing), so ask them; conflict, when present, is another answer the sources gave. Each coverage finding has a stable key; fixable: true means DocuGen's automatic correction may act on it on the next generation, not an instruction to you.

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>"
    },
    "name": "docugen_get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectionNoOptional heading, to read only that section
documentIdYesDocument id

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden. It richly discloses return content, fidelityCheck status meanings, autoFixed/opportunities handling, and openDecisions semantics; it implies read-only behavior but does not explicitly state permissions, rate limits, or error behavior.

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

Conciseness3/5

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

The description is front-loaded with the core read and return behavior, but it becomes a dense, single-paragraph wall of semicolons, nested parentheses, and internal jargon. Much of the fidelityCheck and openDecisions detail earns its place because there is no output schema, yet the structure makes it difficult to parse quickly.

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 read tool with no output schema, the description is thorough about returned fields and how to interpret them. It omits auth, error, and pagination details, but those are minor for this operation and do not prevent correct invocation.

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 100% for both parameters, establishing a baseline of 3. The description mentions section headings but adds no meaningful explanation of the optional section parameter beyond the schema's 'Optional heading, to read only that section'; documentId semantics are also left to the schema.

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?

Opens with 'Read a document' and specifies what is returned: Markdown content, section headings, and a revision string. It distinguishes the read operation from update implicitly by saying the revision must be passed back to docugen_update_document, but it does not explicitly differentiate itself from sibling read tools such as document template or project getters.

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 description provides extensive guidance on what to do with returned fidelityCheck and openDecisions data, but it does not explicitly state when to use this tool versus alternatives like docugen_list_documents or docugen_get_document_template. Usage is implied by 'Read a document' and the revision/update linkage, leaving the agent to infer selection conditions.

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