Skip to main content
Glama

Turn the draft into the document

qa_draft_build

Builds a hand-written QA draft into a self-contained HTML report, keeping it in the extension by default or producing a non-saved preview.

Instructions

BUILD THE DRAFT into a self-contained HTML report — the same assembly qa_report_build does and the same one the panel’s Build button runs, so a document written by hand and one written here are the same document. It is KEPT in the extension by default, which is how the person finds it in the panel an hour later; save: false builds a preview and keeps nothing. THE DRAFT IS ONLY EMPTIED IF THE DOCUMENT WAS REALLY KEPT. When the browser has no room the HTML still comes back and the lines stay where they were — losing the work and the built document in the same breath is the one outcome this must never have. It refuses for the reasons qa_report_build refuses, and the important one is NO PICTURE: a page of assertions about an application showing none of them is the artefact this product exists to replace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "qa_draft_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoWrite the HTML here as well. Without it the document comes back inline, which for a report with pictures in it is usually the wrong trade.
nameNoKeep it under this name, replacing a document of the same name rather than leaving a stale twin above it.
saveNofalse builds it without keeping anything — a preview. Default is to keep it.
tabIdNoTarget tab (from qa_tabs); omit for the active tab

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.2/5.0
Behavior5/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: default persistence in the extension, preview/no-keep under `save: false`, draft cleared only on confirmed save, and degraded behavior under storage exhaustion (HTML still returned, draft lines preserved). It also names the key refusal cause (no picture) rather than leaving refusal opaque.

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 operative facts (what it builds, where it is kept, the emptying rule, the failure rule, the refusal rule) are front-loaded and capitalized, which is good. But the prose is padded with rhetorical framing — "in the same breath," "the artefact this product exists to replace" — and long compound sentences that slow an agent parsing for constraints.

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 an unannotated, no-output-schema tool with four simple parameters, the description covers the behaviors that matter: persistence, preview mode, draft-emptying condition, failure mode, and refusal. The return format is partially covered (HTML inline versus written to `out`), though pagination or return metadata is never mentioned.

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 all four parameters are already documented, including `save`, `name`, `out`, and `tabId`. The description reinforces the `save: false` meaning and the inline-versus-file tradeoff, but adds no format, syntax, or default detail beyond the schema — baseline 3 applies.

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?

"BUILD THE DRAFT into a self-contained HTML report" gives a specific verb, resource, and output format. It explicitly ties itself to the sibling qa_report_build ("the same assembly") and to the panel's Build button, so the agent knows exactly which of the two build tools handles draft content.

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?

Makes clear this operates on the draft (versus qa_report_build on a finished report) and that `save: false` is the preview path. It states what it refuses for only by reference to qa_report_build's refusal conditions, so the agent must open the sibling to learn the full exclusion list — a real but minor gap.

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