Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_selection_texts

Read the selection screen labels shown next to parameters and select-options in an ABAP program or function group, returned as line-based NAME=Label pairs. Read-only and safe on production.

Instructions

Read the raw SELECTION TEXTS (the labels shown next to PARAMETERS and SELECT-OPTIONS on the selection screen) for an existing ABAP program or function group. This is a separate ADT sub-resource from text symbols (get_text_elements) - the two must be written independently. Returns line-based NAME=Label pairs as ADT stores them. 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_selection_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectNameYesProgram 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?

With no annotations supplied, the description carries the full behavioral burden and does reasonably well: it declares the operation read-only, says it is safe on any profile including production, and describes the response shape as line-based NAME=Label pairs as ADT stores them. What it omits is failure behavior (e.g., what happens for an object with no selection texts) and any permission caveats beyond the blanket safety claim.

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?

Three short sentences, front-loaded with the resource and scope, then the sibling distinction, then the return format and safety profile. Every sentence carries distinct information with no restatement of the name or title.

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

Completeness5/5

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

There is no output schema, and the description compensates by describing the return format (line-based NAME=Label pairs) and the read-only safety profile. Combined with complete schema coverage for the two parameters, an agent has everything needed to call this correctly.

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%, with both objectName and the PROG/FUGR enum documented in the schema itself, so the baseline is 3. The description only restates that the target is a program or function group, adding no format, naming, or edge-case guidance beyond 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?

States a specific verb and resource ('Read the raw SELECTION TEXTS ... for an existing ABAP program or function group') and pins down what a selection text is (labels next to PARAMETERS/SELECT-OPTIONS). It explicitly distinguishes itself from the sibling get_text_elements, so an agent can choose 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 Guidelines4/5

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

The definition makes clear this tool covers the selection-text sub-resource and that it is separate from text symbols, which is the key routing decision an agent faces here. It stops short of naming patch_selection_texts as the write counterpart or stating exclusions beyond that, so it is clear context rather than a full when/when-not matrix.

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