Skip to main content
Glama

GetObjectVersionDiff

Compares two historical versions of an ABAP source object, such as a class, program, CDS view, or interface, to show the differences between them.

Instructions

[read-only] Reads two versions of a class (CLAS), program (PROG), CDS view (DDLS) or other source object from its version history and compares them.

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": {
      "object_type": "<object_type>",
      "content_uri_from": "<content_uri_from>",
      "content_uri_to": "<content_uri_to>"
    },
    "name": "GetObjectVersionDiff"
  }
}

Input Schema

NameRequiredDescriptionDefault
object_typeYesObject type (the same value the version history was read with).
content_uri_toYesOpaque content_uri of the NEW/compare version (from the object's version history).
content_uri_fromYesOpaque content_uri of the OLD/base version (from the object's version history).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv20.1.0
    • changedInput schema / properties / content_uri_from / description
      Previous value: -"Opaque content_uri of the OLD/base version (from a GetObjectVersions entry)."New value: +"Opaque content_uri of the OLD/base version (from the object's version history)."
    • changedInput schema / properties / content_uri_to / description
      Previous value: -"Opaque content_uri of the NEW/compare version (from a GetObjectVersions entry)."New value: +"Opaque content_uri of the NEW/compare version (from the object's version history)."
    • changedInput schema / properties / object_type / description
      Previous value: -"Object type (same value used in GetObjectVersions)."New value: +"Object type (the same value the version history was read with)."
  2. Changed1 schema field changedv8.12.1
    • changedInput schema / properties / object_type / enum
      Previous value: -[
      -  "class",
      -  "program",
      -  "interface",
      -  "function_group",
      -  "function_module",
      -  "table",
      -  "structure",
      -  "ddl",
      -  "domain",
      -  "data_element",
      -  "package",
      -  "behavior_definition",
      -  "metadata_extension"
      -]New value: +[
      +  "class",
      +  "program",
      +  "interface",
      +  "function_module",
      +  "table",
      +  "structure",
      +  "ddl",
      +  "behavior_definition",
      +  "metadata_extension"
      +]
  3. Addedv8.5.0

TDQS

B3.2/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 burden; it does front-load a '[read-only]' marker and states the source (version history), which covers the safety profile. It does not disclose what the comparison returns (unified diff vs structured change list), any size/truncation limits, or whether content_uri values expire, all relevant for a diff tool with no output schema.

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 sentence, front-loaded with the read-only marker and the verb, with no redundant restatement of the name. The trailing 'or other source object' is mildly vague filler but does signal that the enum is not exhaustive.

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?

Three required, well-documented parameters keep the call shape simple, but with no output schema the description should say more about what a diff result looks like. Combined with the unresolved generic-vs-type-specific overlap, an agent has enough to call it but not enough to call it confidently over siblings.

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 the schema already explains object_type and both content_uri parameters, giving a baseline of 3. The description's only added value is naming concrete object types (CLAS, PROG, DDLS) and the 'from its version history' provenance, both of which the schema already encodes.

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?

States a specific verb pair (reads and compares) and a specific resource (two versions of a source object from version history), so the operation is unambiguous. It does not distinguish itself from the many type-specific siblings (GetClassVersionDiff, GetProgramVersionDiff, GetDdlVersionDiff, etc.), which appear to do the same thing per object type.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use guidance, no prerequisites, and no routing rules. Most importantly, with nine type-specific *VersionDiff siblings present, an agent gets no help deciding whether to call this generic tool or the type-specific one; the only cue is the implied 'call it when you have two content_uris' from the schema.

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

Deploy Server

Other Tools