Skip to main content
Glama

diff-gatekeeper

PR / Dependency Breaking-Change & Exploit Gatekeeper — Merge gate for a pull request: pass/warn/fail verdict, 0-100 risk score, the top findings with file:line and a fix, drop-in patches, GitHub Checks annotations and a SARIF 2.1.0 log. Accepts a raw unified diff, a GitHub PR, commit or compare URL, or per-file patches. Deterministic scanners (secrets, SQL and command injection, weak crypto, risky package.json changes) run beside a model review for bu

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": "diff-gatekeeper"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoAlternative to gitDiff: changed files with their patch hunks, as returned by GitHub's pull request files API.
prUrlNoAlternative to gitDiff: a public GitHub pull request, commit or compare URL (github.com/owner/repo/pull/123). Its .diff is downloaded; a diff over 300,000 characters is cut at a file boundary and the rest reported as unreviewed.
contextNoWhat the PR is supposed to do.
gitDiffNoRaw unified diff (git diff output). Provide exactly one of gitDiff, prUrl or files.
packageJsonDiffNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/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 it does disclose a lot: what scanners run (secrets, SQL/command injection, weak crypto, risky package.json changes), that a model review runs alongside deterministic checks, and the exact output shape. However, it omits operational traits an agent needs — whether it mutates anything, auth or token requirements for private repos, latency/cost, and how unreviewed content is surfaced — and the text is cut off mid-sentence ('for bu'), truncating the final behavioral claim.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded and dense with concrete value, but it is delivered as one long run-on sentence, and the definition ends abruptly mid-word, which signals an incomplete string. A structurally sound version would break the input modes and output artifacts into separate statements.

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?

There is no output schema, so the description must describe returns, and it does so well by naming the verdict, risk score, findings, patches, Checks annotations and SARIF log. Against that, 5 parameters with two (context, packageJsonDiff) never mentioned and a truncated trailing clause leave the definition short of what a gate of this complexity requires.

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 80%, so the schema already documents gitDiff, prUrl, files and context, making 3 the baseline. The description restates the three input modes but adds no meaning beyond the schema for packageJsonDiff or context, and the mutual-exclusivity rule it implies ('exactly one of gitDiff, prUrl or files') is already spelled out in the schema.

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?

The description opens with a specific verb-plus-resource framing ('Merge gate for a pull request') and then enumerates the concrete artifacts it produces: pass/warn/fail verdict, 0-100 risk score, findings with file:line and fixes, drop-in patches, GitHub Checks annotations, and a SARIF 2.1.0 log. An agent can distinguish this from neighbors like dependency-advisor or cra-readiness purely from the text.

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?

It tells the agent which inputs are accepted ('a raw unified diff, a GitHub PR, commit or compare URL, or per-file patches'), which implies the invocation contexts, but it never states when to prefer this gate over alternative tools such as dependency-advisor, nor any precondition or exclusion. Usage is implied rather than prescribed.

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.

Resources