Skip to main content
Glama

redline_diff

Compare candidate JSONL outputs against a redline suite and return behavioral diffs to catch prompt regressions before release.

Instructions

Compare candidate JSONL outputs against a redline suite and return the behavioral diff.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory where redline should run.
jsonNoPrint machine-readable JSON.
configNoConfig path to read.
out_mdNoWrite Markdown report.
compactNoPrint compact one-line-per-case output.
fail_onNoComma-separated statuses that produce exit code 1; use none for report-only.
profileNoDiff profile: strict or review.
out_htmlNoWrite self-contained HTML report.
out_jsonNoWrite JSON report.
out_junitNoWrite JUnit XML report.
out_slackNoWrite Slack Block Kit JSON report.
suite_pathNoSuite JSON path. Defaults to config when omitted.
input_fieldNoCandidate prompt field path.
out_commentNoWrite concise PR-comment Markdown report.
output_fieldNoCandidate response field path.
candidate_pathYesCandidate JSONL path.
max_output_bytesNoMaximum stdout/stderr bytes returned to the MCP client.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it discloses almost nothing behavioral. It omits that report files can be written to disk (out_md, out_html, out_json, out_junit, out_slack, out_comment), that fail_on controls a non-zero exit code, that a subprocess runs in a project cwd, and that max_output_bytes truncates output — all consequential for a 17-parameter tool.

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?

A single front-loaded sentence with zero filler that leads with the purpose. It is not padded, though the extreme brevity comes at the cost of the missing behavioral detail noted elsewhere rather than from wasted wording.

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

Completeness2/5

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

For a 17-parameter tool with no annotations and no output schema, one sentence is not enough. The agent is not told what the diff output looks like, how cases/statuses are defined, or that the tool has significant file-writing and exit-code side effects.

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 100%, so each of the 17 parameters is already documented in the schema, which sets the baseline at 3. The description adds no extra meaning about profiles, diff semantics, or how suite_path defaults to config beyond what the schema states.

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?

The description states a specific verb (compare) with two named resources (candidate JSONL outputs, a redline suite) and the result (behavioral diff), which is far more informative than the bare name. It does not differentiate itself from plausible siblings such as redline_eval, redline_quick_check, or redline_validate, so an agent must infer which comparison tool fits.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no exclusions or named alternatives. The phrase 'against a redline suite' implies a regression/diff workflow, but the description never says when to pick this over redline_eval or redline_quick_check.

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