Skip to main content
Glama

GetFunctionGroup

Retrieve ABAP Function Group source code from SAP systems to access development artifacts for analysis or integration purposes.

Instructions

Retrieve ABAP Function Group source code

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
function_groupYesName of the function module

Implementation Reference

  • The handler function that implements the GetFunctionGroup tool logic, fetching source code from SAP ADT API.
    export async function handleGetFunctionGroup(args: any) {
        try {
            if (!args?.function_group) {
                throw new McpError(ErrorCode.InvalidParams, 'Function Group is required');
            }
            const encodedFunctionGroup = encodeURIComponent(args.function_group);
            const url = `${await getBaseUrl()}/sap/bc/adt/functions/groups/${encodedFunctionGroup}/source/main`;
            const response = await makeAdtRequest(url, 'GET', 30000);
            return return_response(response);
        } catch (error) {
            return return_error(error);
        }
    }
  • Input schema definition for the GetFunctionGroup tool, specifying the required 'function_group' parameter.
    inputSchema: {
      type: 'object',
      properties: {
        function_group: {
          type: 'string',
          description: 'Name of the function module'
        }
      },
      required: ['function_group']
    }
  • src/index.ts:132-145 (registration)
    Tool registration in the listTools response, including name, description, and input schema.
    {
      name: 'GetFunctionGroup',
      description: 'Retrieve ABAP Function Group source code',
      inputSchema: {
        type: 'object',
        properties: {
          function_group: {
            type: 'string',
            description: 'Name of the function module'
          }
        },
        required: ['function_group']
      }
    },
  • src/index.ts:313-314 (registration)
    Dispatch logic in CallToolRequest handler that routes to the GetFunctionGroup handler function.
    case 'GetFunctionGroup':
      return await handleGetFunctionGroup(request.params.arguments);
  • src/index.ts:16-16 (registration)
    Import statement for the GetFunctionGroup handler.
    import { handleGetFunctionGroup } from './handlers/handleGetFunctionGroup';
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Retrieve' implies a read operation, it doesn't specify whether authentication is needed, what format the source code returns in, if there are rate limits, or how errors are handled. This leaves significant behavioral gaps for a tool that accesses source code.

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 perfectly concise - a single sentence that states exactly what the tool does with zero wasted words. It's front-loaded with the core purpose and doesn't include any unnecessary information.

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?

For a tool that retrieves source code with no annotations and no output schema, the description is insufficient. It doesn't explain what format the source code returns in (raw text, structured format), whether it includes metadata, or how to handle the result. The context signals show this is part of a larger ABAP development toolset, but the description doesn't leverage this context.

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 schema has 100% description coverage, with the single parameter clearly documented as 'Name of the function module'. The description doesn't add any additional parameter semantics beyond what the schema already provides, which is acceptable given the 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 Function Group source code'), making the purpose immediately understandable. However, it doesn't differentiate this tool from its sibling 'GetFunction', which likely retrieves individual function modules rather than function groups.

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 like 'GetFunction' or 'SearchObject'. There's no mention of prerequisites, context, or exclusions that would help an agent choose appropriately among the many sibling tools.

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