Skip to main content
Glama
agent-bridge
by MPT0M

submit_diff_for_review

Submit code changes or a unified diff for peer review and quality auditing before committing. Use it to catch issues early and document intent.

Instructions

Submit code changes or a unified diff for peer review and quality auditing before committing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "description": "<description>",
      "diff_or_patch": "<diff_or_patch>"
    },
    "name": "submit_diff_for_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
descriptionYesSummary of the changes made and the intention behind them
diff_or_patchYesUnified diff or code patch to be audited
branch_or_commitNoGit branch name or commit hash reference

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.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 behavioral burden. It does convey meaningful intent — that output goes to peers for review/audit and that this should precede a commit — but it omits whether the call blocks, whether audit results are returned synchronously or reviewers are merely notified, and any permission or size constraints.

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?

A single well-formed sentence with the action and its purpose front-loaded and no filler. It is efficient, though it is short enough that the space saved could have been spent on the behavioral gaps.

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?

For a 3-parameter submission tool with no annotations and no output schema, the definition is only minimally complete. An agent still cannot tell what the call returns (a review record, an audit report, or nothing) or what happens after submission, which matters for a review-gating workflow.

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 coverage is 100%, so each parameter is already documented (description summary, unified diff, branch/commit reference). The description only loosely echoes the diff parameter and adds no format, sizing, or usage nuance beyond the schema, so the baseline of 3 applies.

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 pairs a specific verb ("Submit") with a concrete resource ("code changes or a unified diff") and states the goal (peer review and quality auditing before committing). That is enough to separate it from proposal/chat siblings, though it never explicitly contrasts itself with them.

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?

"Before committing" gives a clear timing cue for when to reach for this tool, which is useful implied guidance. However, there is no explicit when-not guidance, no mention of prerequisites, and no named alternative among the sibling tools.

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