Skip to main content
Glama

GetObjectVersions

Read the version history of ABAP classes, programs, interfaces, function modules, tables, structures, CDS views, and other versioned objects to inspect changes.

Instructions

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

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>",
      "object_name": "<object_name>"
    },
    "name": "GetObjectVersions"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoHow much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent.terse
object_nameYesObject name.
object_typeYesObject type.
function_group_nameNoOwning function group name. Required when object_type is function_module.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "terse",
      +  "description": "How much of the answer to return: \"terse\" (default) what a next call needs: the identifiers and a short description; \"medium\" every item the tool read, with its main properties; \"full\" the tool's whole answer; \"raw\" what SAP sent.",
      +  "enum": [
      +    "terse",
      +    "medium",
      +    "full",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / object_type / enum
      Previous value: -[
      -  "class",
      -  "program",
      -  "interface",
      -  "function_module",
      -  "table",
      -  "structure",
      -  "ddl",
      -  "behavior_definition",
      -  "metadata_extension"
      -]New value: +[
      +  "class",
      +  "program",
      +  "interface",
      +  "function_module",
      +  "table",
      +  "structure",
      +  "ddl",
      +  "behavior_definition",
      +  "metadata_extension",
      +  "table_type"
      +]
  2. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / object_name / description
      Previous value: -"Object name (e.g., ZCL_MY_CLASS, ZIF_MY_INTERFACE, Z_MY_TABLE)."New value: +"Object name."
  3. 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"
      +]
  4. Addedv8.2.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden; it does supply the important '[read-only]' marker and the fact that it works across versioned object types. It says nothing about ordering of versions, whether deleted or inactive versions appear, pagination or volume limits, or authorization requirements — meaningful gaps for a history tool with zero annotation coverage.

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 front-loaded sentence that opens with the read-only marker and the core action, with no redundant wording. The long enumeration of object types is informative but makes the sentence unwieldy; a shorter category summary would have read better.

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 needed to compensate by sketching the return shape (version identifiers, authors, dates, transports) and the relationship to GetObjectVersionSource/GetObjectVersionDiff. It covers input applicability well but leaves the output side entirely to inference.

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%, with both enums and the detail levels fully described in the schema, so the baseline of 3 applies. The description adds one genuine piece of meaning by mapping user-facing object categories to ABAP type codes, but it says nothing about the function_group_name conditional requirement or how detail levels affect a version listing.

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 the version history' of an ABAP object, and enumerates the supported object categories with their SAP type codes (CLAS, PROG, INTF, FUGR, TABL, DDLS). An agent knows exactly what the tool returns conceptually. It does not, however, distinguish itself from the many type-specific siblings such as GetClassVersions or GetTableVersions.

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?

There is no guidance on when to prefer this generic version-history tool over the type-specific siblings in the catalog, nor any stated exclusions or prerequisites (authorization, whether the object must exist in the system). The only hint is the enumerated object list, which merely implies applicability rather than guiding selection.

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