Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_table_type

Modify part of an existing DDIC table type's XML definition by replacing an exact string, such as accessType, keyKind, or row type, without rewriting the whole object.

Instructions

Modify PART of an existing DDIC table type's XML definition (e.g. change accessType, keyKind, or the row type). Replaces oldString with newString (must match EXACTLY ONCE) in the object's raw XML - read it first with get_object_info to see the exact text to target. 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": {
      "tableTypeName": "<tableTypeName>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_table_type"
  }
}

Input Schema

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

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 supplied, the description carries the full burden and does disclose key behavior: substring replacement semantics, the exactly-once match requirement, and a hard safety guard against production profiles. It stops short of describing what the response looks like or whether a failed match leaves the object untouched.

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 sentences, front-loaded with the action and the constraint, then the prerequisite, then the safety guard. No sentence restates the tool name or the schema, and nothing is padded.

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 five-parameter mutation tool with no annotations and no output schema, the description covers the risky parts well: matching semantics, prerequisite discovery step, and production refusal. The missing piece is post-call behavior (return shape, activation effects), which matters slightly more here because no output schema exists to cover it.

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 already 100%, so the baseline is 3, but the description adds real meaning beyond the field docs: oldString must match exactly once, and get_object_info is the way to obtain that exact text. The activate and transport parameters are left entirely to 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 ("Modify PART of an existing DDIC table type's XML definition") and scopes it with examples (accessType, keyKind, row type). The word "PART" and the exact-string replacement model distinguish it from whole-object writers such as patch_table or create_table_type without the agent needing to open another 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?

Gives a concrete precondition ("read it first with get_object_info to see the exact text to target") and an explicit exclusion ("Refuses to run on production profiles"). It does not name a fallback for when the exact-once constraint cannot be satisfied, which keeps it short of a full when/when-not/alternatives treatment.

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