Skip to main content
Glama

ghost_qa_compare

Compare two ghost-qa JSON reports to return score deltas, fixed findings, new regressions, and remaining findings. Use after fixes to verify repairs; verified only at score ≥95 with zero regressions.

Instructions

Compare two ghost-qa JSON reports (the objects returned by ghost_qa_audit_url, or report.json files written by the CLI) and return the Regression & Verification Delta Report: scoreDelta, fixedFindings, newRegressions and remainingFindings. Use it after fixing bugs to prove the fix worked without introducing regressions; verified=true only at score >= 95 with zero regressions and no blocking findings left.

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": {
      "before": "<before>",
      "after": "<after>"
    },
    "name": "ghost_qa_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterYesNew ghost-qa report JSON (after fixes), e.g. the saved after.json object
beforeYesBaseline ghost-qa report JSON (before fixes), e.g. the saved before.json object

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A4.4/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 does well: it discloses the return payload and the exact pass condition (verified=true only at score >= 95, zero regressions, no blocking findings). It stops short of describing failure modes such as incompatible or mismatched reports, which is a real gap for a comparison tool taking nested JSON blobs.

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

Conciseness5/5

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

Two sentences: the first covers inputs and outputs, the second covers when to use it and the success criterion. Everything is front-loaded with zero filler.

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 a two-parameter, nested-object tool with no annotations and no output schema, the description compensates well by naming the returned fields and the verification threshold. Only the handling of invalid or mismatched report inputs is left unexplained.

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 100%, so baseline is 3, but the description adds provenance the schema lacks: the inputs are objects returned by ghost_qa_audit_url or report.json files written by the CLI. That tells the agent where to obtain valid values, beyond the schema's bare before/after wording.

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?

States a specific verb (compare) and resource (two ghost-qa JSON reports) and enumerates the exact output fields: scoreDelta, fixedFindings, newRegressions, remainingFindings. It also disambiguates provenance by naming ghost_qa_audit_url as a source of valid inputs, so an agent can tell it apart from the audit and doctor siblings.

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?

"Use it after fixing bugs to prove the fix worked without introducing regressions" gives a clear triggering condition tied to the post-fix verification phase. It doesn't state exclusions (e.g., not for comparing reports from different URLs or schema versions), but the timing guidance is concrete enough to select the tool correctly.

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