Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Explain Diff Architectural Impact

explain_diff
Read-onlyIdempotent

Summarize modified files and symbols in a unified diff and match relevant team architectural rules. Use when reviewing code changes against documented team rules and architecture guidelines.

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>",
      "diff": "<diff>"
    },
    "name": "explain_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYesUnified git diff string to analyze.
namespaceYesLogical workspace namespace.

Output Schema

NameRequiredDescriptionDefault
summaryYes
namespaceYes
changed_filesYes
matching_rulesYes
affected_symbolsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds only that it both summarizes and matches rules; it says nothing about diff size limits, whether unmatched rules are reported, or how team rules are resolved from the namespace. Useful but thin beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero padding: the capability comes first, the usage cue second. Every clause carries information and nothing is repeated from the schema or annotations.

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

Completeness5/5

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

An output schema exists, so return values need no explanation, and annotations fully cover the safety profile. Parameters are fully documented in the schema, and the description covers both halves of the operation, leaving nothing essential an agent needs in order to call it correctly.

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% and both parameters are documented in the schema, so the baseline is 3. The description reinforces that the diff must be a unified git diff, but adds no format, size, or namespace-resolution semantics beyond what the schema states.

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-and-resource pair: summarizing modified files and symbols from a unified diff, plus matching team architectural rules. It is clearly distinct from a generic diff summarizer, but it does not explicitly distinguish itself from close siblings such as diff_risk or impact, leaving the agent to infer the boundary.

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?

"Use when reviewing code changes against documented team rules and architecture guidelines" gives a usage context, but there are no exclusions and no named alternatives. With siblings like diff_risk and impact in the catalog, the agent is left to guess which of these to call for a given review task.

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.