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
| Name | Required | Description | Default |
|---|---|---|---|
| section | No | Optional heading, to read only that section | |
| documentId | Yes | Document id |