Skip to main content
Glama

run_pr_gate_pipeline

Read-onlyIdempotent

When: a diff is ready for review. Gives: likely bugs in the added lines (with the diff line), risk score with every factor named, impacted areas, test cases to add, credentials added by the diff (BLOCK, masked previews), and with commit_message its Conventional Commits check. PASS / CONDITIONAL / BLOCK. Deterministic, no model call. Does not prove: that the change is correct; only a credential is a hard rule, the rest is triage.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "git_diff": "diff --git a/src/pay.js b/src/pay.js\n--- a/src/pay.js\n+++ b/src/pay.js\n@@ -0,0 +1 @@\n+const total = price * qty;\n"
    },
    "name": "run_pr_gate_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoOptional PR title or description for richer analysis
git_diffYesUnified git diff (output of `git diff HEAD` or copied from GitHub diff view)
commit_messageNoChecked against Conventional Commits; an invalid one makes the verdict CONDITIONAL at most.

Output Schema

NameRequiredDescriptionDefault
slaNo
highNo
topBugsNo
criticalNo
bugsFoundNo
riskLevelNo
riskScoreNo
disclaimerNo
impactAreasNo
inputFormatNo
notAnalysedNo
riskFactorsNo
changedFilesNo
severityLevelNo
testCasesGeneratedNo
mergeRecommendationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantial context beyond them: deterministic with no model call, credential findings are BLOCK-level with masked previews, commit_message caps the verdict at CONDITIONAL when invalid, and only credentials are a hard rule while everything else is triage. These are real behavioral expectations an agent cannot infer from the schema or annotations.

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?

Front-loaded with a "When:" trigger and a "Gives:" output list, then closed with an explicit limitation — good information ordering with no filler sentences. The telegraphic fragment style and the output enumeration partly duplicate the output schema, which costs it a point but not readability.

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?

For a read-only analysis tool with full schema coverage, annotations, and an output schema, the description covers everything an agent needs: trigger condition, the shape of the verdict, determinism guarantees, and the explicit limits of what the verdict proves. No material gap remains for correct invocation.

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 the baseline is 3. The description mentions commit_message's Conventional Commits check, but the schema already documents that check and its CONDITIONAL consequence, and the optional `context` parameter is never referenced in the description. Net meaning added beyond the schema is minimal.

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 states a specific verb+resource combination (gating a PR diff for review) and enumerates concrete outputs: likely bugs on added lines, a named-factor risk score, impacted areas, suggested tests, and credential detection with PASS/CONDITIONAL/BLOCK verdicts. It is unambiguous about what the tool produces, though it never names a sibling (e.g. generate_test_cases, check_api_contract) to disambiguate overlapping concerns.

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?

"When: a diff is ready for review" gives an explicit trigger condition, and "Does not prove: that the change is correct; only a credential is a hard rule, the rest is triage" sets clear scope limits so the agent won't over-trust the verdict. It stops short of naming alternatives or stating when not to call it (e.g. for non-diff review tasks), so no exclusion routing is provided.

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.