Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_structure

Modify part of an existing DDIC structure DDL by replacing an exact string once, with production write protection. Use it to add or change fields without rewriting the full structure.

Instructions

Modify PART of an existing DDIC structure's DDL (e.g. add one field). Replaces oldString with newString (must match EXACTLY ONCE). 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": {
      "structureName": "<structureName>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing. Default false.
newStringYesReplacement text
oldStringYesExact existing DDL text to replace. Must occur exactly once.
transportNoTransport request. Omit only for local/$TMP objects.
structureNameYesStructure name, e.g. ZST_PLANT_EMAIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 meaningful work: it discloses the replacement semantics, the hard uniqueness requirement ('must match EXACTLY ONCE'), and a safety guard ('Refuses to run on production profiles'). It omits what happens when the string matches zero or multiple times, and says nothing about transport-locking or activation side effects that the parameters imply.

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 operation, then the mechanism, then the safety constraint. No filler, and the most decisive limitation (production refusal) is placed last where it reads as a gate.

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 mutation tool with no annotations and no output schema, the description covers the essentials: partial scope, replacement contract, uniqueness requirement, and an environment restriction. Gaps remain around failure behavior on match errors and around transport/activation consequences, but nothing critical for a first correct call is missing.

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 five parameters are already documented, and the baseline of 3 applies. The description reinforces the oldString/newString exact-once constraint but adds no syntax, formatting, or transport guidance beyond what the schema already states.

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 and resource ('Modify PART of an existing DDIC structure's DDL') and adds a concrete example ('add one field') plus the string-replacement mechanism, which separates it from a whole-object update. It never names update_structure or create_structure, so the differentiation is inferable rather than explicit.

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?

The 'PART' framing and the exact-once matching rule imply this is for small surgical edits rather than full rewrites, and the production-profile refusal functions as a when-not condition. However, it gives no explicit routing guidance against siblings like update_structure or create_structure for cases where the change is large or the structure does not exist.

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