Skip to main content
Glama

GetTextElements

Reads text symbols, selection texts, and headings from an ABAP program, function group, or class in its original language at the requested version to inspect UI texts.

Instructions

[read-only] Reads the text elements of an ABAP program (PROG), function group (FUGR) or class (CLAS) in its original language at the version asked: text symbols, selection texts and headings.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "object_kind": "<object_kind>",
      "object_name": "<object_name>"
    },
    "name": "GetTextElements"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsNoParts to read: symbols, selections, headings. Default: every part of the object; a class has symbols only.
versionNoThe version read: "active" (default) the activated version, "inactive" the version saved and awaiting activation, "workingArea" the version in the working area, as ADT answers it.active
object_kindYesKind of object: program, function_group or class.
object_nameYesName of the program, function group or class.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does add real value with the bracketed [read-only] marker, the 'original language' constraint, and the version semantics. It still omits permission/auth requirements and whether errors are raised for missing objects.

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 dense sentence with the safety marker front-loaded and the object kinds given early. It is efficient, though the parenthetical abbreviations and colon-list tail slightly compress the part enumerations.

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

Completeness3/5

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

No output schema exists, so the description should hint at what a text element record looks like; it lists the part categories but not the returned structure. All input parameters are covered by the schema, so the gap is limited to return expectations.

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 all four parameters are already documented, which sets the baseline at 3. The phrase 'at the version asked' reinforces the version parameter but adds no format or default details beyond the schema.

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 resource ("text elements") and enumerates the three object kinds with their ABAP abbreviations (PROG, FUGR, CLAS). It does not differentiate itself from the obvious sibling UpdateTextElements, leaving the read/write distinction implicit.

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 only implied: an agent can infer this is the read path for text symbols, selection texts and headings, but the description never says when to prefer it over GetClass or UpdateTextElements, nor any prerequisite such as needing the object to exist.

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