Skip to main content
Glama

Object Version History

sap_get_revisions
Read-onlyIdempotent

List ABAP object revision history and retrieve source of any prior version to compare changes or restore old code.

Instructions

List the version history (revisions) of an ABAP object, or fetch the source of a specific old version.

Args:

  • object_type, object_name (and function_group for functions).

  • version (string): omit to list revisions; supply to read that revision's source.

  • response_format.

Returns (json): { objectType, objectName, versionsUri, count, revisions: [{ version, author?, updated?, contentUri }], version?, source?, lineCount? }.

Examples:

  • "What versions exist of ZFI_POST?" -> object_type='program', object_name='ZFI_POST'.

  • "Show version 00002 of ZFI_POST" -> ..., version='00002'.

  • "What changed since the last transport?" -> read an old version, then compare with sap_get_source. Notes:

  • Version records exist only where SAP created them (transport release, SE38/ADT version generation). A freshly created $TMP object may legitimately have none.

  • Requesting an unknown version returns the list of available version numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
versionNoVersion number from a previous call (e.g. '00000' = oldest entry, or as listed). When given, returns that version's full source instead of the list.
object_nameYesObject name (e.g. 'ZFI_POST', 'ZCL_FOO').
object_typeYesKind of object: 'program', 'include', 'class', 'interface', or 'function'.
function_groupNoRequired only when object_type='function': the enclosing function group.
response_formatNoOutput format: 'markdown' (human-readable, default) or 'json' (structured).markdown
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description adds valuable behavioral detail: version records exist only when SAP created them, fresh $TMP objects may have none, and an unknown version returns the list of available numbers. This prevents misleading expectations without contradicting annotations.

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?

The description is well-structured with clear sections: Args, Returns, Examples, and Notes. The main purpose is front-loaded, and every section earns its place without redundant padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema, the description fully compensates by specifying the JSON return shape, covering both operation modes, providing examples, and documenting edge cases. An agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaning by explaining the dual-mode behavior of the version parameter ('omit to list revisions; supply to read that revision's source') and gives natural-language examples that map intents to parameter values.

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?

Description starts with a specific verb+resource: 'List the version history (revisions) of an ABAP object, or fetch the source of a specific old version.' This clearly distinguishes sap_get_revisions from sap_get_source by emphasizing historical revisions versus current source, so an agent can tell them apart.

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

Usage Guidelines4/5

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

The description gives concrete usage patterns with examples: when to omit version, when to supply it, and how to compare with sap_get_source. It does not formally state 'do not use for current source,' but the examples and notes make the intended use clear enough.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/appmaster3000/sap-abap-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server