Skip to main content
Glama

sap_get_enhancements

Retrieve all SAP enhancements for a transaction or program in one call—BAdIs, customer exits, enhancement spots, and BTEs—with implementation and active status.

Instructions

List ALL enhancements for a SAP transaction or program in one call. Returns BAdIs (new + classic), customer exits (SMOD/CMOD), enhancement spots (implicit/explicit), and BTEs (Business Transaction Events). Each entry includes: type, name, implementation, active status, program, and include name. USE THIS when the user asks about enhancements, BAdIs, customer exits, user exits, SMOD, CMOD, SE18, SE19, BTEs, extension points, or custom code on a transaction. Pass transaction (e.g., 'BP', 'VA01', 'XD01') or program_name (e.g., 'SAPMV45A'). DO NOT manually query SXS_ATTR, SXC_ATTR, MODSAP, or MODACT — use this tool instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transactionNoSAP transaction code (e.g., XD01, VA01, BP, MM02, ME21N). The program is resolved automatically.
program_nameNoABAP program name (e.g., SAPMF02D for XD01/XD02, SAPMV45A for VA01)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the safety/disclosure burden. It discloses that the call lists all enhancements, that the program is resolved automatically from a transaction, and the exact fields per entry (type, name, implementation, active status, program, include name). It could go slightly further (e.g., stating read-only/no side effects), but 'List' plus the output inventory is strong for a read-oriented tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

The core action is front-loaded and every sentence carries information; the keyword list and table-name exclusions are useful, not fluff. It is slightly verbose due to the repeated examples, but remains efficiently scannable.

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 two-optional-parameter tool with no output schema, the description covers the return shape, parameter examples, and scope. It does not explicitly describe error behavior when neither parameter is supplied, but the schema description covers the 'at least one' requirement.

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 the baseline is 3, but the description adds genuine value by giving concrete examples for both parameters ('BP', 'VA01', 'XD01', 'SAPMV45A') and explaining that program resolution is automatic. It also reinforces the 'at least one required' constraint from the schema.

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?

The first sentence states a specific verb ('List') and resource ('enhancements for a SAP transaction or program'), and enumerates the exact artifact types returned (BAdIs, customer exits, enhancement spots, BTEs). This clearly differentiates it from sibling tools like sap_read_code or sap_read_where_used.

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

Usage Guidelines5/5

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

Contains an explicit 'USE THIS when' clause listing trigger keywords (BAdIs, SMOD/CMOD, SE18/SE19, BTEs, etc.) and an explicit 'DO NOT' instruction to avoid manual table queries. That is direct selection guidance rather than leaving usage to inference.

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

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/NicoHern/abapilot-mcp'

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