Skip to main content
Glama

GetObjectVersionSource

Reads an older source version of an ABAP class, program, function module, table, CDS view, or other versioned object from its history for inspection or comparison.

Instructions

[read-only] Reads an older version of the source code of an ABAP class (CLAS), program (PROG), function module (FUGR), table (TABL), CDS view (DDLS) or other versioned object from its version history.

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": "<content_uri>"
    },
    "name": "GetObjectVersionSource"
  }
}

Input Schema

NameRequiredDescriptionDefault
content_uriYesOpaque content_uri of a version, from the object's version history.
object_typeYesObject type (the same value the version history was read with).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv20.1.0
    • changedInput schema / properties / content_uri / description
      Previous value: -"Opaque content_uri taken from a GetObjectVersions version entry."New value: +"Opaque content_uri of a 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.2.0

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 burden; it does declare '[read-only]' explicitly, which is a genuine behavioral disclosure. But it says nothing about authorization requirements, behavior when the content_uri is expired or unknown, or what happens on an object_type/content_uri mismatch — the schema hints the type must match how version history was read, yet the description does not restate or explain that consequence.

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?

One well-formed sentence with the read-only marker front-loaded and no filler. The parenthetical abbreviation list is dense but informative; slightly tighter enumeration would be cleaner.

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?

For a two-parameter read tool with full schema coverage and no output schema, the purpose is adequately conveyed. The main gap is contextual: with ten type-specific source siblings present, the description leaves the agent without a rule for choosing between the generic and specific variants.

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 baseline is 3. The description adds some value by mapping ABAP type abbreviations (CLAS, PROG, FUGR, TABL, DDLS) to object types, but its list is partial against the nine enum values and it adds no meaning about content_uri beyond the schema's 'opaque' note.

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 and resource: reads an older version of object source from version history, and enumerates which object types it covers. However, the sibling set contains type-specific equivalents (GetClassVersionSource, GetProgramVersionSource, GetTableVersionSource, etc.), and the description never explains why an agent would pick this generic tool over one of those, so it does not fully differentiate itself.

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 implied by 'from its version history' and 'older version', but there is no explicit when-to-use/when-not statement and no routing advice relative to the many type-specific Get*VersionSource siblings. The agent must infer that this is the generic fallback covering all object types.

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