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';

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