Skip to main content
Glama

Verify a code change

verify_change
Idempotent

Have Veridu review a code change you just made, before you commit or open a pull request. Independent reviewers check the change against the files you send (for PHP, Veridu also traces callers and overrides within them), findings that cite a file or line not in what you sent are dropped, and only problems both reviewers confirm can block. You get an outcome (pass / review / block) and concrete findings with file, line, severity and evidence.

Send: diff = git diff --no-renames <base> of your change (include new files: git add -N first), and files = the FULL current content of every file the diff adds or modifies, keyed by repo-relative path. You may add up to a few closely related unchanged files (callers, interfaces) to files for context. Text files only; no renames, mode changes, symlinks, submodules or binaries. Limits: diff 256 KB / 60 files, files 512 KB total.

After fixing findings, call again with the new diff. Veridu links it to the previous check of the same files (last 24 hours) automatically; pass parent_change = an earlier change_id only to link a different one. Up to two follow-ups per change do not count as a new review. Sending exactly the same change again returns the earlier result. Every finding has a finding_id that stays the same across follow-ups while the problem persists. A follow-up also returns followup: which ids persist, which came back (reported earlier in the chain, skipped last time), which are new (possibly introduced by your fix), and which are no longer reported, with code_changed saying whether the flagged line changed. "No longer reported" is not proof of a fix. Low-severity findings can be left out of the list but are still counted in followup. An identical resend returns the earlier result as it was. Each other new change counts as one review on the signed-in Veridu account.

Results are advisory: Veridu sees only what you send, not the rest of the repository, its tests or its instructions. A pass is not approval; report the outcome and findings to the user and let them decide. If the review is still running after ~45 seconds you get a change_id and stage_label (what Veridu is doing now): tell the user that line, then call get_change with the change_id (do not call verify_change again for the same change).

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": {
      "diff": "<diff>",
      "files": "<files>"
    },
    "name": "verify_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYesUnified git diff of the change (git diff --no-renames).
filesYesRepo-relative path → full current file content, for every added/modified file (+ optional related files).
intentNoOne or two sentences: what the change is meant to do.
repo_nameNoOptional label, e.g. owner/repo.
parent_changeNoOptional. Veridu links a follow-up to the previous check of the same files automatically; pass a change_id to link a different check, or "none" to start a fresh one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, but the description is far richer than those hints: it discloses the review mechanics (independent reviewers, out-of-scope citations dropped, only dual-confirmed problems block), size limits (256 KB / 60 files, 512 KB files), billing semantics ('counts as one review on the signed-in Veridu account'), idempotency behavior (identical resend returns earlier result), and asynchronous behavior (~45s then change_id + stage_label). This is well above the annotation bar and is what makes the tool predictable.

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?

Well front-loaded: purpose first, then 'Send:' input prep, then follow-up mechanics, then advisory caveats. Dense and mostly waste-free, though the follow-up/finding_id paragraph is long and partly restates what parent_change's schema description already says.

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

Completeness5/5

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

No output schema exists, yet the description fully covers the return shape: outcome (pass/review/block), findings with file, line, severity and evidence, stable finding_id across follow-ups, the followup breakdown (persist / came back / new / no longer reported) with code_changed, and the change_id + stage_label fallback. An agent has everything needed to call it, interpret the response, and act on it.

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; the description adds concrete operational meaning beyond the schema by prescribing the exact command for 'diff' (git diff --no-renames <base>), insisting on FULL current content for 'files', and clarifying parent_change's default auto-linking. It does not explain the 'intent' or 'repo_name' parameters, keeping it short of a 5.

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?

Opening sentence gives a specific verb, resource, and timing constraint: 'Have Veridu review a code change you just made, before you commit or open a pull request.' It also implicitly separates itself from the siblings by describing the initial review flow here and delegating polling to get_change ('do not call verify_change again for the same change').

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

Usage Guidelines5/5

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

Explicit when-to-use (before commit/PR), explicit preparation steps (git add -N for new files, full current content for files), explicit exclusions (no renames, mode changes, symlinks, submodules, binaries), and an explicit alternative path when the review runs long (call get_change instead of re-calling). parent_change usage is scoped: 'only to link a different one.'

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.