Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_text_elements

Adds or updates TEXT symbols in an existing ABAP program, class, or function group by merging specified IDs into current elements while leaving unmentioned symbols unchanged.

Instructions

Add or update TEXT SYMBOLS (TEXT-xxx) for an existing ABAP program, class, or function group. This is a SEPARATE ADT object from the source code - update_program_source/update_class etc. cannot touch it. Reads the current text symbols, merges in the given ones (matched by 3-character id, case-insensitive; an existing id is overwritten, a new one is added), then writes the merged result back. Existing symbols not mentioned are left untouched. No activation needed - text elements 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>",
      "symbols": "<symbols>"
    },
    "name": "patch_text_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesText symbols to add or update
transportNoTransport request, e.g. D01K900123. Omit only for local/$TMP objects.
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.6/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 burden and does well: it discloses the read-merge-write cycle, that matched ids are overwritten while unmentioned symbols are preserved, case-insensitive id matching, and a production guard. Gaps remain on failure behavior (e.g., duplicate ids in the input, missing transport) and on what the write returns, which matters since no output schema exists.

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?

The purpose and object-scope distinction are front-loaded, followed by merge semantics, then activation and safety caveats in descending order of importance. Every sentence supplies a distinct fact; nothing is redundant with the schema or name.

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 4-parameter mutation tool with no annotations and no output schema, the description covers purpose, merge behavior, side effects, and a safety restriction. It could be more complete by indicating what happens on error or what the save returns, but nothing essential for a correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains that matching is by 3-character id, is case-insensitive, and that an existing id overwrites while a new one is added. That merge semantics is not expressible in the schema alone. It says nothing extra about transport or maxLength, which 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?

States a concrete verb pair ('Add or update') with a specific resource ('TEXT SYMBOLS (TEXT-xxx)') and scope ('existing ABAP program, class, or function group'). It further separates itself from the source-code update tools by declaring this a SEPARATE ADT object, so an agent can distinguish it from update_program_source/update_class 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?

Gives explicit routing guidance: source-code update tools 'cannot touch it', so this is the correct tool for text symbols. It also states a clear exclusion ('Refuses to run on production profiles') and removes the activation step ('No activation needed'), which tells the agent what not to chain afterward.

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