Skip to main content
Glama

GetEnhancements

Reads enhancement implementations (ENHO) for ABAP programs, includes, function groups, and classes at their active version, including enhancements from nested includes on request.

Instructions

[read-only] Reads the enhancement implementations (ENHO) of ABAP programs (PROG), includes (PROG), function groups (FUGR) or classes (CLAS) at their active version, and of their includes when asked.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "GetEnhancements"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoHow much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent.terse
objectsNo[read-only] Several objects, read together (give this or object_name and object_type)
programNo[read-only] An include's main program, when its metadata names none
detailedNo[read-only] true: every field of each enhancement, as read; false (default): each enhancement by name, type and source. Either way every object read is answered, one without enhancements with total_enhancements 0
object_nameNoName of the ABAP object (with object_type; or give objects)
object_typeNo[read-only] Type of the ABAP object
max_includesNo[read-only] With include_nested: how many includes are read (default 50)
include_nestedNo[read-only] true: also the enhancements of every include of a program or function group

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "terse",
      +  "description": "How much of the answer to return: \"terse\" (default) what a next call needs: the identifiers and a short description; \"medium\" every item the tool read, with its main properties; \"full\" the tool's whole answer; \"raw\" what SAP sent.",
      +  "enum": [
      +    "terse",
      +    "medium",
      +    "full",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / detailed
      Added value: +{
      +  "description": "[read-only] true: every field of each enhancement, as read; false (default): each enhancement by name, type and source. Either way every object read is answered, one without enhancements with total_enhancements 0",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_nested
      Added value: +{
      +  "description": "[read-only] true: also the enhancements of every include of a program or function group",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_includes
      Added value: +{
      +  "description": "[read-only] With include_nested: how many includes are read (default 50)",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / program
      Added value: +{
      +  "description": "[read-only] An include's main program, when its metadata names none",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv20.1.0
    • changedInput schema / properties / object_name / description
      Previous value: -"Name of the ABAP object"New value: +"Name of the ABAP object (with object_type; or give objects)"
    • addedInput schema / properties / objects
      Added value: +{
      +  "description": "[read-only] Several objects, read together (give this or object_name and object_type)",
      +  "items": {
      +    "properties": {
      +      "object_name": {
      +        "description": "Name of the ABAP object",
      +        "type": "string"
      +      },
      +      "object_type": {
      +        "description": "Type of the ABAP object",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "object_name",
      +      "object_type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "object_name",
      -  "object_type"
      -]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

No annotations were supplied, so the description carries the load and does so reasonably: it declares read-only in the tag, discloses that only the ACTIVE version is read (an important behavioral constraint an agent would otherwise have to guess), and states that every object read is answered even when empty (total_enhancements 0). It omits anything about authorization requirements or limits on include recursion beyond the default 50.

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?

A single front-loaded sentence with the read-only marker first and the resource immediately after; every clause (supported types, active version, includes) carries information. Slightly dense with parenthetical type codes, but no wasted sentences.

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?

With 8 parameters, no annotations, and no output schema, the definition still conveys the key contract: what object types are valid, that the active version is read, how empty results are represented, and that include traversal is conditional. The detail/detailed level semantics and the empty-result shape are left mostly to the schema and to inference, which keeps it just short of full completeness.

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?

Schema description coverage is 100%, so the schema already explains detail, detailed, include_nested and max_includes. The description only adds the semantic mapping of 'and of their includes when asked' to the nested-include option, which is a modest supplement rather than new meaning.

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?

States a specific verb (reads) and a specific resource (enhancement implementations, ENHO), and enumerates the supported object types (PROG, FUGR, CLAS) plus the include-following behavior. It does not explicitly differentiate itself from the singular sibling GetEnhancementImpl or GetEnhancementSpot, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the object-type list: call this when you need enhancements for a program, include, function group, or class. The phrase 'when asked' hints that includes are opt-in via include_nested, but there is no explicit when-not guidance and no named alternative for the singular/spot tools.

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

Deploy Server

Other Tools