Skip to main content
Glama

Rewrite a report the extension already holds

qa_report_edit

Reads and replaces the building blocks of an existing QA report, then rebuilds it under the same name so one document stays on the shelf instead of near copies.

Instructions

EDIT A FINISHED DOCUMENT: read the blocks it was built from, change them, and build it again UNDER THE SAME NAME — so the shelf keeps one document rather than a family of near copies. This is the same operation the person does in the report editor. Call it with only a name to read the blocks back; pass blocks to replace them. The run’s own context — the address, the moment, the conditions the application was under — is carried over from the original and cannot be rewritten here, because those are facts about the run rather than about the wording. A report saved before its source was kept has nothing to edit, and says so.

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

Input Schema

NameRequiredDescriptionDefault
kindNo
nameYesFrom qa_reports.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
blocksNoThe document’s new contents, in order. Omit to read the current ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and discloses that this is a mutating edit, preserves the same document name, supports read vs replace modes, carries over immutable run context, and fails on older reports without kept source. It does not detail return shape or permission requirements, but core behavior is well covered.

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

Conciseness4/5

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

Front-loads the action and then explains the same-name rebuild, mode behavior, immutable run context, and missing-source failure. The phrasing is slightly verbose but every sentence carries a constraint or useful mode detail.

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?

Given no output schema and a complex `blocks` parameter, the description supplies enough operational context: edit vs read, same-name preservation, non-rewritable run context, and the old-report failure case. It omits `kind` and `tabId` semantics, but those are covered by the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the baseline is 3. The description adds meaningful semantics for `name` and `blocks` by defining the read-vs-replace mode switch, though it leaves `kind` and `tabId` 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?

States a specific verb and resource: edit a finished document/report by reading its blocks, changing them, and rebuilding under the same name. It implies the distinction from a fresh build by emphasizing that the shelf keeps one document, though it does not explicitly name sibling alternatives.

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?

Explains two clear modes: call with only `name` to read blocks back, or pass `blocks` to replace them. It also gives a when-not condition for reports whose source was not kept, but it does not explicitly compare this tool to siblings such as qa_report_build.

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