Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_text_elements

Reads raw TEXT-xxx text-pool content for an ABAP program, class, or function group, returning exact ADT id=text pairs to debug mismatches; read-only and safe on production.

Instructions

Read the raw TEXT SYMBOLS (TEXT-xxx) text-pool content for an existing ABAP program, class, or function group - the read-only counterpart to patch_text_elements (which can only write, not read). Returns the exact raw content ADT returns (line-based id=text pairs, with an @MaxLength:n marker where set) - useful for seeing precisely what's stored when debugging a mismatch, rather than guessing from patch_text_elements' own merge log. Read-only, safe on any profile including production.

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": {
      "objectName": "<objectName>"
    },
    "name": "get_text_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectNameYesProgram, class, or function group name, e.g. ZRM_STOCK_MOVEMENT_HK
objectTypeNoObject kind. Default PROG (report/include).PROG

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden. It states read-only semantics, declares the tool safe on any profile including production, and describes the return shape (line-based id=text pairs, @MaxLength:n marker) that no output schema documents. It stops short of describing failure modes, e.g. what happens for a nonexistent object or an object with no text pool.

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 resource and read-only nature are front-loaded, and each clause adds information rather than restating the name. The nested parentheticals make it denser than necessary, but no sentence is wasted.

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-parameter read tool with no output schema, the description covers what is read, the return format, safety, and the sibling relationship. Only edge-case behavior for missing or empty text pools is unaddressed.

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 coverage is 100%, so both parameters are already documented in the schema. The description restates the object kinds (program, class, function group) that the objectType enum encodes and adds no new detail about format or defaults. Baseline 3 is appropriate when the schema does the work.

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 description names a specific verb and resource ("Read the raw TEXT SYMBOLS (TEXT-xxx) text-pool content") and scopes it to ABAP programs, classes, and function groups. It explicitly contrasts itself with patch_text_elements, so an agent can distinguish the read path from the write path without opening either schema.

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?

It names the alternative (patch_text_elements) and explains that the alternative can only write, not read, then gives the concrete scenario that selects this tool: "seeing precisely what's stored when debugging a mismatch, rather than guessing from patch_text_elements' own merge log." When-to-use, when-not-to-use, and the substitute are all present.

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