Skip to main content
Glama

docugen_get_job

Check the status of a generation job started by docugen_generate_document. Returns the url of the document, the link to send the user for review and approval. While the job runs, currentStep and progress (0-100) say where it is: a BND takes about 1 minute, a PRD 1 to 2 and a technical specification 2 to 4 (measured in production, November 2026), so wait about 30 seconds between calls. When the job is completed it also returns fidelityCheck (null when this type is not checked; a check is also recorded when the context was cut, even for types otherwise not checked). This is the one recorded at generation time; docugen_get_document returns the current one, recomputed after edits to the document. notesRead says what the generation read after the parent was approved: parentComments (the open comments on the parent, one per entry) and requesterContext (whether your additionalContext entered); a comment you expected and do not see there did not reach the document. DocuGen compared the generated document with its input. With status "review", check the items before asking for approval: missingIds lists identifiers from the input (such as AT01 or RF-07) absent in the document, foreignScript lists passages in another alphabet, truncated means the end may be missing, internalConflicts and inputConflicts list contradictions inside the document and with the input, 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 jev.changedRule or jev.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, then ask the user to approve. 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. When the user decides or confirms one, record it with docugen_answer_decision.

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": {
      "jobId": "<jobId>"
    },
    "name": "docugen_get_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesJob id

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior5/5

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

With zero annotations, the description carries the full disclosure burden and does so unusually well: it names the returned fields (url, review link, currentStep, progress 0-100, fidelityCheck, notesRead, autoFixed, opportunities, openDecisions), explains nullability and edge cases (fidelityCheck null when unchecked, still recorded when context was cut), and decodes status "review" findings item by item. Crucially it warns about the 0.7 jev thresholds and explains what an absent comment in parentComments actually means, which is the kind of inference-costly detail annotations could never convey.

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

Conciseness2/5

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

The content is nearly all useful, but it is delivered as a single undifferentiated block of roughly 400 words with no line breaks, bullets, or headings, mixing polling behavior, return fields, review findings, and decision semantics. An agent must parse a wall of prose to extract the one routing rule (use docugen_answer_decision) and the status interpretation. Front-loading is good; structure is poor.

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?

No output schema exists, so the description must describe the return payload — and it does, field by field, including conditional presence (coverageOmitted), null meaning, and the difference between generation-time and recomputed values. For a polling tool whose whole value is interpreting a rich response, nothing essential is missing.

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?

There is one parameter (jobId) and schema description coverage is 100%, so the schema already does the work; the description adds only the implicit provenance (a job "started by docugen_generate_document"). No format, no example, no note on where to obtain the id — baseline 3 is appropriate.

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?

Opens with a specific verb and resource — "Check the status of a generation job" — and immediately binds it to the sibling that creates jobs (docugen_generate_document). An agent knows exactly which family of objects this operates on and can distinguish it from docugen_get_document, which is named explicitly.

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?

Gives concrete calling guidance ("wait about 30 seconds between calls") and per-type expectations (BND ~1 min, PRD 1-2, tech spec 2-4), plus the decisive routing rule: this returns the fidelityCheck "recorded at generation time" while docugen_get_document returns the recomputed one. It also routes to docugen_answer_decision when acting on openDecisions. It stops short of stating outright exclusions or when not to poll at all, so it is strong rather than exhaustive.

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