Skip to main content
Glama
FullContextInput MCP

FullContextInput MCP

by lukehemmin

analyze_code_changes

Compares two code versions to identify changes, detect lost functionality, and highlight structural differences for safer code reviews.

Instructions

두 코드 버전을 비교하여 변경사항을 분석합니다. 기능 유실, 구조 변화 등을 감지합니다.

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": {
      "original_content": "<original_content>",
      "new_content": "<new_content>"
    },
    "name": "analyze_code_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathNo분석할 파일 경로 (컨텍스트 제공용)
new_contentYes새로운 코드 내용
original_contentYes원본 코드 내용

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.4

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add useful behavioral context by naming what the analysis detects (feature loss, structural changes), implying a read-only evaluation, but it never states that it makes no modifications, how expensive it is, or what kind of result it produces.

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 tight sentences with the core action front-loaded and no filler. It is arguably too terse for an analysis tool, but nothing is wasted or buried.

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?

With no output schema and no annotations, the description should say more about the shape of the results, such as whether findings are structured, scored, or free text. Naming the detection categories partially compensates, but an agent still cannot predict the return format of a comparison 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 all three parameters are already documented, including that file_path is contextual only. The description adds no syntax, format, or size guidance 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 states a concrete verb and resource: compare two code versions and analyze the changes, with the added detail that it detects feature loss and structural changes. An agent can tell what the tool does, though it does not explicitly contrast itself with near siblings such as validate_code_integrity or write_file_diff.

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?

Usage is only implied by the phrase 'compare two code versions', which loosely maps to the required original_content and new_content parameters. There is no statement of when this tool should be chosen over validate_code_integrity or write_file_diff, nor any prerequisites or exclusions.

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