Skip to main content
Glama

GetTransaction

Retrieve ABAP transaction details from SAP systems by specifying the transaction name, enabling developers to access development artifacts through the MCP ABAP ADT server.

Instructions

Retrieve ABAP transaction details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transaction_nameYesName of the ABAP transaction

Implementation Reference

  • The handler function that implements the GetTransaction tool logic. It validates the transaction_name, constructs the ADT API URL, makes a GET request, and returns the response or error.
    export async function handleGetTransaction(args: any) {
        try {
            if (!args?.transaction_name) {
                throw new McpError(ErrorCode.InvalidParams, 'Transaction name is required');
            }
            const encodedTransactionName = encodeURIComponent(args.transaction_name);
            const url = `${await getBaseUrl()}/sap/bc/adt/repository/informationsystem/objectproperties/values?uri=%2Fsap%2Fbc%2Fadt%2Fvit%2Fwb%2Fobject_type%2Ftrant%2Fobject_name%2F${encodedTransactionName}&facet=package&facet=appl`;
            const response = await makeAdtRequest(url, 'GET', 30000);
            return return_response(response);
        } catch (error) {
            return return_error(error);
        }
    }
  • The input schema definition for the GetTransaction tool, registered in the ListTools response.
      name: 'GetTransaction',
      description: 'Retrieve ABAP transaction details',
      inputSchema: {
        type: 'object',
        properties: {
          transaction_name: {
            type: 'string',
            description: 'Name of the ABAP transaction'
          }
        },
        required: ['transaction_name']
      }
    },
  • src/index.ts:331-332 (registration)
    The dispatch case in the CallToolRequest handler that routes GetTransaction calls to the handleGetTransaction function.
    case 'GetTransaction':
      return await handleGetTransaction(request.params.arguments);
  • src/index.ts:25-25 (registration)
    Import statement for the GetTransaction handler function.
    import { handleGetTransaction } from './handlers/handleGetTransaction';
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states 'Retrieve' which implies a read operation, but doesn't cover aspects like error handling, authentication needs, rate limits, or what 'details' includes. This leaves significant gaps for a tool with no 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It's appropriately sized for a simple retrieval tool and front-loads the core purpose immediately.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete. It doesn't explain what 'details' are returned, error cases, or how this fits with sibling tools. For a retrieval tool in a complex SAP environment, more context is needed to guide effective use.

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?

The input schema has 100% description coverage, with the parameter 'transaction_name' clearly documented. The description adds no additional parameter semantics beyond what the schema provides, such as format examples or constraints, so it meets the baseline for high schema coverage.

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?

The description clearly states the verb ('Retrieve') and resource ('ABAP transaction details'), making the purpose understandable. However, it doesn't differentiate this tool from its siblings like GetClass or GetFunction, which follow similar patterns for different SAP objects, so it misses full sibling distinction.

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 provides no guidance on when to use this tool versus alternatives. With siblings like SearchObject that might find transactions, there's no indication of when retrieval by exact name is preferred over search, or any prerequisites for usage.

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

Install Server

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/mario-andreschak/mcp-abap-adt'

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