Skip to main content
Glama
sec-audit-swarm
by mesutgungor

sec_audit_pr_review

Anchor audit findings to Git diff hunks, correct minor line drift, and export GitHub PR review JSON, GitLab MR discussion JSON, or Markdown PR summaries.

Instructions

Anchor findings against Git diff hunks, auto-correct minor line drift, and export GitHub PR Review JSON, GitLab MR Discussions JSON, and Markdown PR summary.

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": "sec_audit_pr_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
dbNoBlackboard SQLite path (default: audit_state/blackboard.db)
outNoOutput directory (default: audit_state)
run_idNoAudit run ID (defaults to latest run)
statusNoFinding status to include (default: verified)
base_refNoGit base ref for diff hunk anchoring (default: HEAD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does reveal that line drift is auto-corrected, which suggests the blackboard anchors may be mutated, but it never says whether the database is written to, whether output files are overwritten, or what happens when a hunk cannot be matched. For a tool that mutates state and writes files, that is a substantial gap.

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?

It is a single dense sentence that front-loads the anchoring behavior and then the outputs; every clause carries distinct information. The parallel list of formats reads a little as a run-on but contains no filler.

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?

All parameters are optional and there is no output schema, so the description should explain the side effects and outputs. It names the three output artifacts well, which is the main thing needed. However, it leaves out the effects on the blackboard database and on existing files, which matters for a tool that writes and auto-corrects.

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 all five parameters (db, out, run_id, status, base_ref) are already documented in the schema; the baseline is 3. The description's mention of Git diff hunk anchoring only loosely connects to base_ref and adds no syntax, default, or interaction detail. It does not compensate beyond the schema, but it does not need to.

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 uses specific verbs and resources: anchor findings to Git diff hunks, auto-correct line drift, and export in three named formats (GitHub PR Review JSON, GitLab MR Discussions JSON, Markdown summary). This is far more than a restatement of the name. It never distinguishes this tool from the sibling sec_audit_export, so an agent cannot tell which of the two to choose for a given output format.

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 three export formats imply the use case: produce PR/MR review artifacts for anchored findings. However, the description gives no explicit when-to-use condition, no prerequisite (for example, that findings must already exist in an audit run), and no exclusion relative to sec_audit_export. The guidance is only implicit and must be inferred.

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