Skip to main content
Glama
mcp-github-gitlab-pr-security-and-compliance-reviewer

mcp-github-gitlab-pr-security-and-compliance-reviewer

generate_github_pr_suggestions

Generates committable inline code suggestions from a unified diff, mapping security, injection, WCAG, and AI Act compliance findings to exact files and new-file line numbers.

Instructions

Generates committable GitHub/GitLab inline review suggestions (```suggestion blocks) mapped to exact target files and new-file line numbers for all security, injection, WCAG, and AI Act compliance findings.

Input Schema

NameRequiredDescriptionDefault
diffYesUnified git diff string to generate committable code suggestions for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the output shape (```suggestion blocks anchored to exact target files and new-file line numbers) and the finding taxonomy, which is genuinely useful. However, it does not say whether anything is posted back to GitHub/GitLab or whether output is purely returned text, nor does it mention repo context requirements, size limits, or determinism of the generated suggestions.

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?

One tightly packed sentence with the artifact type front-loaded and no redundant filler. It is dense but every clause carries information; the only mild cost is that the finding list and mapping details run together in a single breath.

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 carry the return contract, and it only partially does – it names the artifact (suggestion blocks mapped to file/line) but not the container format (markdown text, JSON array, etc.) or how multiple findings are ordered/grouped. For a moderately complex generation tool that's adequate but leaves a real gap an agent would want closed before invoking it.

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?

The single parameter has 100% schema description coverage ('Unified git diff string'), so the schema already does the heavy lifting. The description adds only the notion that findings must map to new-file line numbers, not any diff format or syntax guidance beyond the schema; baseline 3 applies for this near-zero parameter count.

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 and artifact: 'Generates committable GitHub/GitLab inline review suggestions (```suggestion blocks)' mapped to files and line numbers, and it scopes the findings to security, injection, WCAG, and AI Act categories. This clearly separates it from scan_diff_for_secrets and export_pr_sarif_report, though it never names review_git_diff as the non-suggestion alternative.

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?

Usage is only implied: the word 'committable' hints that this is the tool to pick when you want apply-ready patch suggestions rather than a plain review or SARIF export. There is no explicit when-to-use statement, no prerequisite (e.g., must the diff be unified/complete?), and no named alternative to route away from.

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