Skip to main content
Glama

claude_verify

Run an independent, read-only blind audit via local Claude Code CLI, blocking write/edit tools and enforcing PASS/FAIL/BLOCKED verdicts for high-risk changes.

Instructions

Run an independent read-only blind audit via local Claude Code CLI (default Opus 5.5, --model opus) in a fresh no-persistence context without executor self-reports. Serves as the parallel secondary double-blind auditor alongside agy_verify for major/milestone/high-risk changes and automatic fallback when agy CLI is unavailable. Blocks write/edit/mutating tools, checks directory snapshots for read_only_violation, audits a turn-scoped or full-workspace git diff plus .agents/state/plan-history.md, and enforces VERDICT: PASS|FAIL|BLOCKED.

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

Input Schema

NameRequiredDescriptionDefault
planNoComplete approved implementation plan or fix-round instructions (optional when plan_file is provided).
modelNoClaude verifier model alias or ID (default: opus -> Opus 5.5; e.g. claude-opus-5-5, opus[1m]).
effortNoClaude CLI verifier reasoning effort: low, medium, high, xhigh, or max (default: CLAUDE_VERIFY_EFFORT or high).
max_turnsNoMaximum Claude CLI verifier turns (default: 25).
plan_fileNoOptional path to Markdown/text file containing the approved plan (relative to workspace_dir or absolute).
allow_bashNoAllow non-mutating Bash commands (tests, typechecks, linters) during read-only audit (default: true).
diff_scopeNo'last_run' (default): diff only the changes since the last executor run checkpoint pre_run_tree (new files included), falling back to 'workspace' when unavailable; 'workspace': full uncommitted workspace diff (milestones / pre-commit / pre-PR).
allowed_filesNoAuthorized file paths Claude is permitted to create or modify.
extra_contextNoOptional additional focus areas or disputed findings (do not feed executor self-reports for normal blind audits).
workspace_dirYesAbsolute path to the target project workspace directory.
include_historyNoRead-only inject .agents/state/plan-history.md to verify cross-plan compatibility and anti-duplication (default: true).
timeout_secondsNoSync verify timeout in seconds (default: 150, max: 165).
include_git_diffNoInject bounded current git diff and status into the audit prompt (default: true).
verification_commandsNoRead-only verification commands the verifier should run to collect objective runtime evidence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 behavioral burden and does it well: it discloses the read-only enforcement ('blocks write/edit/mutating tools'), snapshot-based violation detection, the audited inputs (git diff plus plan-history.md), the no-persistence fresh context, and the enforced 'VERDICT: PASS|FAIL|BLOCKED' output contract. It omits failure behavior when the CLI is unavailable and the sync timeout ceiling that constrains long audits.

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?

Purpose and the sibling relationship are front-loaded in the first two sentences, followed by enforcement mechanics. The prose is dense and clause-heavy but each clause carries distinct information; no filler sentences.

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 14-parameter, no-output-schema tool with zero annotations, the description covers the essential context: safety model, audited artifacts, and the verdict contract. Gaps remain around error/timeout behavior and the return payload beyond the verdict string, but the core calling information is present.

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 all 14 parameters are already documented in the schema. The description adds only light reinforcement — the default 'opus' model and the 'turn-scoped or full-workspace git diff' notion — without clarifying interactions such as plan vs plan_file precedence or how allowed_files and verification_commands constrain the audit.

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 and resource ('Run an independent read-only blind audit via local Claude Code CLI') and immediately distinguishes itself from the sibling 'agy_verify' as the parallel secondary double-blind auditor. The agent can identify the operation and its niche without opening the schema.

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?

Explicitly scopes usage to 'major/milestone/high-risk changes' and names its role as fallback when the agy CLI is unavailable, which is clear routing guidance. It stops short of stating when NOT to use it (e.g., routine low-risk changes) or when agy_verify alone suffices.

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