Skip to main content
Glama

essay.pack.render_word

Render a validated essay pack to a .docx file only after explicit confirmation, requiring a sequence ID and reviewer-approved stage.

Instructions

Essay: essay.pack.render_word (Confirm two-step). Draft writes nothing. Confirm writes a .docx only for the same pack after validation confirm. The essay id must be a sequence id. A bare module code is refused, so Word is not written at Essay-writer//output/. Say that reply to the user. File work does not own the chat. A sequence id writes that sequence's Word file, not the module's other sequences. Word only. No student name unless the assignment record requires it. When that record requires a registration number, print the number stored on the sequence. Do not invent it. Put the page number where the record says. Never confirm a changed pack. The first draft is authored from the stage 4b critical-review markdowns, one markdown per paper. Pass critical_reviews on the pack. Re-open a source paper only with reopen when that markdown does not cover the gap. Pass stage 6 for the first Word file or stage 9 for the final Word file. Those paths need an EQR PASS from the reviewer seat. This writer door does not review itself.

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": {
      "essay_id": "<essay_id>",
      "pack": "<pack>"
    },
    "name": "essay.pack.render_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
packYes
stageNo
essay_idYes
confirmPhaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and delivers a lot: draft is a no-op write, confirm writes the .docx, bare module codes are refused so no file lands at Essay-writer/<module>/output/, validation must pass first, and the writer does not review itself. It does not disclose overwrite behavior, failure modes, or what is returned after a successful write.

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 operative fact (two-step confirm, draft writes nothing) is front-loaded, but the body is a run of telegraphic fragments and mid-paragraph asides to the agent ('Say that reply to the user') rather than a structured explanation. Sentences like 'Word only' and 'File work does not own the chat' are terse to the point of ambiguity, and the ordering jumps between naming rules, file paths, and stage gating.

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

Completeness3/5

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

For a mutation tool with a nested pack object, no annotations, no output schema, and 0% parameter coverage, the description covers the gating and naming rules well but stops short of a callable contract. An agent still lacks the confirmPhase vocabulary, the required pack keys, and any statement of the result of a successful render.

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 0% with four parameters including a free-form nested pack, so the description must compensate. It explains essay_id must be a sequence id and that critical_reviews travels on the pack, and it ties stage values (6 vs 9) to output targets. However it never states the accepted confirmPhase values (only implying 'draft'/'confirm' from prose) and leaves the pack's structure largely undefined.

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?

States a specific verb+resource (render/write a .docx for a pack) and immediately frames it as a two-step draft/confirm operation, which an agent could not infer from the name alone. It also scopes it ('Word only', one sequence at a time), though it never contrasts itself with siblings like essay.pack.validate or essay.stage by name.

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 explicit conditional routing: pass stage 6 for the first Word file, stage 9 for the final one, and both need an EQR PASS from the reviewer seat. It also names an alternative path — 'Re-open a source paper only with reopen when that markdown does not cover the gap' — and forbids confirming a changed pack. What is missing is guidance on when not to call this at all versus validate or stage.

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