Skip to main content
Glama

git_change_risk_summary

Analyze uncommitted or branch Git diffs to calculate a 0-100 review risk score and flag sensitive areas, helping prioritize code review.

Instructions

Analyze uncommitted or branch Git diff and compute a structured review risk score (0-100) with sensitive area flags.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path to the Git repository (defaults to process cwd).
baseRefNoOptional base branch/ref (e.g. main) to diff against HEAD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 disclosure burden. "Analyze" and "compute" imply a read-only inspection, and the output shape (0-100 score plus sensitive area flags) is disclosed, but it says nothing about whether the repository is touched, what makes an area "sensitive", how the score is derived, or whether history depth affects cost.

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 front-loaded sentence with no filler; the scope (uncommitted/branch diff) leads and the output (score plus flags) follows. It could be tightened slightly but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, zero-required analysis tool with no output schema, the description sketches the return value adequately (numeric 0-100 score plus sensitive area flags). Remaining gaps — what the flags contain and whether per-file detail is returned — are minor for a read-only scoring tool.

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 both parameters are already documented, including the baseRef/HEAD diff semantics and the cwd fallback. The description only reinforces that baseRef selects the branch-diff mode, which is a marginal addition over the schema.

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 specific verbs ("Analyze", "compute") with a specific resource (uncommitted or branch Git diff) and names the output artifact: a 0-100 risk score with sensitive area flags. That is enough to distinguish it from the siblings (hotspots, commit-message linting, commit search), 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?

"Uncommitted or branch Git diff" implicitly signals two operating modes tied to the baseRef parameter, which is useful context for choosing this tool before a review. However, there is no explicit when-to-use/when-not statement and no pointer to an alternative for related questions.

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