Skip to main content
Glama

ai_guard_check_integrity

Read-only

Reports quality checks weakened by Git changes versus a base: new suppressions, skipped or removed tests, lowered lint/type/coverage settings, disabled CI steps, and hook bypasses. Read-only.

Instructions

Report checks weakened by current Git changes compared with a base: new eslint-disable/@ts-ignore, skipped, focused or removed tests, lowered ESLint/TypeScript/coverage settings, removed or non-blocking CI steps, Git hook bypasses. tier "high" = precise weakening (hasBlockingFindings=true means the change should not be considered done until each is fixed or explained to the user); tier "advisory" needs judgment and never blocks. Read-only; does not modify files.

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_check_integrity"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoCompare with merge-base(HEAD, base). Default: HEAD (uncommitted and untracked changes).
stagedNoCompare the index with HEAD instead of the working tree
maxFindingsNo

Output Schema

NameRequiredDescriptionDefault
baseNo
cleanYes
errorsYes
statusYes
successYes
acceptedYes
findingsYes
highCountYes
truncatedYes
advisoryCountYes
filesAnalyzedYes
totalFindingsYes
hasBlockingFindingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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, and the description reinforces that with "Read-only; does not modify files" — redundant but consistent. Beyond the annotations it discloses the comparison baseline (merge-base(HEAD, base), default HEAD including uncommitted and untracked changes), which is real behavioral context. It does not discuss what happens when findings are truncated by maxFindings.

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?

Front-loaded with what is detected, then the blocking/advisory contract, then the read-only guarantee — a sensible priority order for a gating tool. Sentences are dense but every clause carries distinct information; only the final "does not modify files" merely echoes the annotation.

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 3-parameter read-only check with a full output schema, the definition covers detection scope, severity semantics, and even explains hasBlockingFindings (an output field) so the agent knows how to gate on it. Remaining gaps, truncation behavior at maxFindings and failure modes on an invalid base ref, are minor given the output schema carries return structure.

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?

At 67% schema coverage, base and staged are already well documented in the schema, including merge-base semantics and index-vs-working-tree behavior. The description adds little parameter-level meaning beyond implying a Git comparison against a base, and maxFindings is unexplained in both schema and description. Baseline 3 is appropriate.

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 (report) and resource (checks weakened by Git changes vs a base), then enumerates the concrete finding categories: eslint-disable/@ts-ignore, skipped/focused/removed tests, lowered linter/TS/coverage settings, removed CI steps, hook bypasses. That level of specificity lets an agent distinguish it from sibling scanning/verification tools 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?

Gives actionable decision rules for interpreting results: tier "high" with hasBlockingFindings=true means the change is not done until each finding is fixed or explained, while "advisory" needs judgment and never blocks. That effectively tells the agent when to act on output. It stops short of naming when to prefer a sibling such as ai_guard_scan_diff or ai_guard_verify_change over this one.

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