Skip to main content
Glama

ai_guard_verify_change

Read-only

Verifies a Git change by reporting introduced lint findings, skipped or weakened tests, and agent-config issues; flags blocking problems to fix first without modifying source.

Instructions

One verdict for the current Git change: lint findings it introduced, focused/skipped/removed/weakened tests, and agent-config issues. pass=false means fix blocking first; report every item in disclosures to the user. Does not modify source.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ai_guard_verify_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoCompare the branch through its merge-base with this ref. Default: uncommitted changes vs HEAD
presetNoagent
maxFindingsNo

Output Schema

NameRequiredDescriptionDefault
baseYes
passYes
errorsYes
statusYes
successYes
summaryYes
blockingYes
truncatedYes
disclosuresYes
preExistingYes
changedFilesYes
totalBlockingYes
totalDisclosuresYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false; the description reinforces this with "Does not modify source" and adds genuinely new behavioral context: the meaning of the pass/fail verdict, the obligation to surface every disclosure item to the user, and the fact that findings are scoped to what the change *introduced* rather than pre-existing issues. It does not cover cost, runtime, or how the preset changes strictness.

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 dense sentences, front-loaded with the outcome ("one verdict") and followed by the actionable interpretation rule. No filler, no restatement of the tool name, and the safety note is a short trailing clause rather than a paragraph.

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

Completeness3/5

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

An output schema exists, so the description is not obliged to explain the return shape, and it does cover the key semantic (pass=false, disclosures). However, for a tool whose main tuning knob is a four-value `preset` enum with zero documentation anywhere, the definition leaves a real decision unexplained, which is a meaningful gap for a default-`agent` verification tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% — only `base` is documented in the schema — and the description mentions no parameters at all. The four `preset` values (recommended/strict/security/agent) and `maxFindings` are left entirely unexplained, so an agent cannot tell what selecting "security" or "agent" actually changes about the verdict.

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?

"One verdict for the current Git change" names a specific verb (verify/aggregate) and resource (the current Git change), then enumerates the four check families it consolidates: introduced lint findings, test quality (focused/skipped/removed/weakened), and agent-config issues. The phrase "one verdict" implicitly distinguishes it from the narrower scan_* siblings, but no sibling is named explicitly, so the differentiation is left to inference.

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 scope is clear (the current Git change) and there is useful post-call guidance — "pass=false means fix blocking first" and "report every item in disclosures to the user" — but there is no explicit when-to-use versus the sibling scan_diff / scan_agent_config tools, nor any statement about when this aggregate verdict is preferable to the individual scanners.

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