Skip to main content
Glama

GetClassVersionSource

Retrieves the source code of an older ABAP class version from its version history using a content URI, so you can inspect or compare prior revisions.

Instructions

[read-only] Reads an older version of the source code of an ABAP class (CLAS) 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": {
      "content_uri": "<content_uri>"
    },
    "name": "GetClassVersionSource"
  }
}

Input Schema

NameRequiredDescriptionDefault
content_uriYesOpaque content_uri of a version, from the ABAP class's version history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv20.1.0
    • changedInput schema / properties / content_uri / description
      Previous value: -"Opaque content_uri taken from a GetClassVersions entry."New value: +"Opaque content_uri of a version, from the ABAP class's version history."
  2. Addedv8.5.0

TDQS

A3.6/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, and it does tag itself "[read-only]" and state the source is historical. It says nothing about permission requirements, what happens with a stale or invalid content_uri, or whether a version must be activated to exist. For a single-parameter read this is acceptable but thin.

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?

A single front-loaded sentence with the read-only tag first and the resource qualification immediately after. No redundant or filler wording.

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?

For a one-parameter read with no output schema, the description covers the essential what and scope, and return-value explanation is unnecessary. Only the failure mode for an invalid/unknown content_uri is left unaddressed.

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% and the sole parameter is already documented as "Opaque content_uri of a version, from the ABAP class's version history." The description adds no syntax, format, or provenance detail (such as where the content_uri comes from) 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?

"Reads an older version of the source code of an ABAP class (CLAS) from its version history" gives a specific verb (reads) and resource (class source) plus the qualifier "older version / version history" that implicitly separates it from GetClass (current source) and GetClassVersionDiff. It never names those siblings explicitly, so the differentiation is inferred rather than stated.

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?

The phrase "older version ... from its version history" implies the tool is for historical source retrieval, which hints at when to prefer it over a current-source read. There is no explicit when-to-use, no prerequisites (e.g., needing a content_uri obtained from GetClassVersions), and no stated exclusions.

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