Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_selection_texts

Add or update labels for PARAMETERS and SELECT-OPTIONS on an ABAP selection screen by merging new selection texts with existing entries.

Instructions

Add or update SELECTION TEXTS (the labels shown next to PARAMETERS / SELECT-OPTIONS on the selection screen) for an existing ABAP program or function group. This is a SEPARATE ADT sub-resource from text symbols (patch_text_elements) - the two cannot be written in one call. Reads the current selection texts, merges in the given ones (matched by parameter/select-option name, case-insensitive; existing entry is overwritten, new one is added), then writes the merged result back. Existing entries not mentioned are left untouched. No activation needed - selection texts take effect immediately once saved. Refuses to run on production profiles.

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>",
      "selections": "<selections>"
    },
    "name": "patch_selection_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
transportNoTransport request number, e.g. DEVK900123. Omit for $TMP objects.
objectNameYesProgram or function group name, e.g. ZRM_STOCK_MOVEMENT_HK
objectTypeNoObject kind. Default PROG.PROG
selectionsYesSelection text entries to add or update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the read-merge-write mechanics, case-insensitive matching by parameter name, overwrite-vs-add semantics, that unmentioned entries are preserved, and that no activation is required. It stops short of describing the response payload or how partial failures/transport locking surface.

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?

Dense but front-loaded: verb+resource first, then disambiguation, then merge behavior, then side effects. Every sentence carries distinct operational information and the parenthetical glosses are the only mild surplus.

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?

Complete on the dimensions that matter most for a no-annotation mutation tool: side effects, idempotency-ish merge semantics, activation, and environment guardrails are all present. The remaining gap is return-value/response shape, which is unaddressed and there is no output schema to cover it.

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 baseline is 3. The description adds genuine meaning about the 'selections' array (merged keyed by case-insensitive parameter name, existing entries overwritten) but says nothing extra about transport, objectName, or objectType beyond what the schema already documents.

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?

Names a specific verb (add/update) and resource (selection texts), parenthetically defines what a selection text is (label next to PARAMETERS/SELECT-OPTIONS), and explicitly distinguishes it from the sibling patch_text_elements (text symbols). An agent can route correctly without opening any 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?

States when to use this tool versus the alternative in explicit terms: text symbols are a SEPARATE sub-resource and 'the two cannot be written in one call,' so an agent needing both knows to call twice. It also states a hard when-not condition: it 'refuses to run on production profiles.'

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