Skip to main content
Glama

CompareObjectVersions

Compare two ABAP object versions to identify exact changes in unified, side-by-side, or summary diff output.

Instructions

Compare two versions of an ABAP object and return a formatted diff. Supports multiple output formats: unified (like git diff), side-by-side, or summary. Use with GetVersionHistory or GetTransportVersions to identify version IDs, then compare them to see exactly what changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: unified (like git diff, default), side-by-side (comparison view), or summary (statistics only)unified
object_nameYesName of the ABAP object (e.g., CL_MAN_CHANGELOG)
object_typeYesObject type: CLAS (class), PROG (program), INCL (include), FUGR (function group), INTF (interface), DDLS (CDS view), BDEF (behavior definition), DCLS (access control)
version_newYesNewer version identifier in timestamp/version format (e.g., 20260201144253/00000) from GetVersionHistory
version_oldYesOlder version identifier in timestamp/version format (e.g., 20260201144253/00006) from GetVersionHistory
context_linesNoNumber of context lines to show around changes in unified format (default: 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well here, naming the three output modes and characterizing each (summary = 'statistics only'). It stops short of stating that this is a non-mutating read operation or any system/permission prerequisites, which is the only meaningful gap for a no-annotation tool.

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, front-loaded with the core action and then the supporting workflow. No filler; every clause carries routing or output-format information.

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?

No output schema exists, so the description must (and does) characterize the return value as a formatted diff with three selectable formats. It is nearly complete for a comparison tool, though it could note that summary mode returns no line-level detail, which affects downstream parsing expectations.

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 the schema already documents all six parameters including the format enum and version ID syntax. The description echoes the format options and adds version-ID provenance (traceable to GetVersionHistory) but adds little beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Compare two versions of an ABAP object and return a formatted diff.' This is clearly distinguishable from siblings like GetVersionHistory (retrieval) and GetProgram (single-version fetch), so an agent can route correctly without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative workflow: 'Use with GetVersionHistory or GetTransportVersions to identify version IDs, then compare them to see exactly what changed.' It tells the agent both the prerequisite tools and the goal state that selects this tool, leaving nothing to inference.

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