Skip to main content
Glama

jev_verify_diff

Verifies a git diff against the original spec, checking security risk, regressions, spec fit, and test coverage in one pass. Returns ALLOW, ASK_USER, or BLOCK to flag issues before completion.

Instructions

Zero-token Spec-to-Diff verification gate. Automatically collects local git diff (if omitted) and evaluates spec fulfillment, bug risk, security risk, and test coverage in 1 parallel pass. BLOCK = elevated security or regression risk: fix before finishing. ASK_USER = warning (spec alignment uncertain or tests missing): tell the user which parts are uncertain instead of rewriting the spec to pass. ALLOW = clean.

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

Input Schema

NameRequiredDescriptionDefault
specYesThe user's original request or acceptance criteria for this step, verbatim where possible. Do not paraphrase the diff.
git_diffNoOptional git diff string. Leave empty to auto-collect local `git diff HEAD`
test_outputNoOptional test runner output
working_directoryNoWorkspace path for local git collection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description must carry all behavioral disclosure, and it mostly does. It discloses a side effect (auto-collecting the local `git diff` when the argument is omitted), the evaluation dimensions, the number of passes ('1 parallel pass'), and the three verdict levels with their required actions. It does not state whether the evaluation is read-only, what it does if not inside a git repository, or what the response looks like beyond the verdict.

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?

The description is short and front-loaded with the purpose before the verdict key. The BLOCK/ASK_USER/ALLOW legend is compact, and each line carries an action. The phrase 'Zero-token' is an unexplained marketing term, and 'ASK_USER = warning (…)' is slightly compressed, but these are minor.

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?

This tool is moderately complex: four parameters, no annotations, and no output schema. Because the description itself documents the verdict enum, the agent understands the output without a schema. The remaining gap is operational detail: whether the call is read-only, and what happens when git auto-collection fails or runs outside a repository.

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 four parameters is already documented in the schema, and this sets a baseline of 3. The description adds a little context by confirming that the diff is auto-collected 'if omitted' and describing the spec as 'spec fulfillment' criteria. It adds no syntax, format, or size guidance for the inputs beyond what the schema already says.

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 names a specific verb and resource: a 'Spec-to-Diff verification gate' that 'evaluates spec fulfillment, bug risk, security risk, and test coverage'. That is concrete enough for an agent to know it validates a diff against a spec. It does not explicitly contrast itself with siblings such as jev_audit_code or jev_guard_action, so it stays below 5.

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

Usage Guidelines3/5

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

The meaning of each verdict is explained, and 'fix before finishing' implies the tool is meant as a pre-completion gate. However, the description never states when to choose this over the closely related audit or guard tools, nor when it is unnecessary. The usage guidance is only implied.

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