Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Assess Diff Risk & Caller Impact

diff_risk
Read-onlyIdempotent

Assess blast radius, caller impact, sensitive paths, and test gaps for a unified diff or changed file list. Use before creating pull requests or approving code changes to gauge risk scores.

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": {
      "namespace": "<namespace>"
    },
    "name": "diff_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffNoUnified git diff text.
namespaceYesLogical workspace namespace.
changed_filesNoArray of changed file paths if diff is omitted.

Output Schema

NameRequiredDescriptionDefault
warningsYes
namespaceYes
risk_levelYes
risk_scoreYes
changed_filesYes
touched_symbolsYes
impacted_callersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds what the analysis actually produces (risk scores, sensitive-path and test-gap detection) and the decision context it supports. It omits cost/latency for large diffs and the fallback behavior when only changed_files is supplied, which is handled only implicitly.

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?

Two front-loaded sentences with the analytical scope first and the usage trigger second; nothing is repeated. Minor jargon ('blast radius') and the slightly overlapping 'gauge risk scores' phrasings are the only soft spots.

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?

With an output schema present, the description need not explain return values, and the annotations cover the safety profile. For a read-only analytical tool with fully documented parameters, the description supplies purpose, scope, and a decision context. It could still say how the two input forms interact when both are given, but nothing critical is missing.

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 three parameters are documented in the schema itself, and the baseline is 3. The description does add the useful either/or framing ('unified diff or changed file list'), which the schema only hints at with 'if diff is omitted'. Beyond that it contributes no format or size guidance.

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 names a specific verb ('Assess') and concrete outputs: blast radius, caller impact, sensitive paths, test gaps, and risk scores, plus the input form (unified diff or changed file list). That is far more specific than the title alone. It does not explicitly distinguish itself from siblings like 'impact' or 'test_gaps', which keeps it from a 5.

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?

It states a clear triggering context: use before creating pull requests or approving code changes. That tells an agent when this tool belongs in a workflow. It stops short of naming when not to use it or pointing to an alternative such as the standalone 'test_gaps' or 'impact' tools, so it is clear context without exclusions.

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.