Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_table

Modify part of an existing DDIC table DDL by replacing an exact string once, avoiding a full definition resend; useful for small edits such as adding a field.

Instructions

Modify PART of an existing DDIC database table's DDL without resending the whole definition. Reads the current source, replaces oldString with newString (must match EXACTLY ONCE), then locks, PUTs, unlocks, and optionally activates. Prefer this over update_table for small edits like adding a field. Refuses to run on production profiles. Activating a structure change may convert the DB, so activate defaults to false.

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": {
      "tableName": "<tableName>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing. Default false - activate in SE11 yourself.
newStringYesReplacement text
oldStringYesExact existing DDL text to replace. Must occur exactly once - include enough context to be unique.
tableNameYesTable name, e.g. ZKIT_PRODUCT
transportNoTransport request. Omit only for local/$TMP tables.

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, the description carries the full burden and does so well: it discloses the read-replace-lock-PUT-unlock-activate sequence, the exactly-once match constraint, the production-profile refusal, and the DB-conversion consequence of activation. It stops short of saying what the tool returns or what happens when oldString matches zero or multiple times, which keeps it below a 5.

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?

Every sentence is front-loaded with an operational fact: what it modifies, the replace-then-lock-then-PUT flow, the alternative tool, the safety refusal, and the activation caveat. There is no filler and no sentence that could be dropped without losing information.

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 supplies the critical safety and side-effect context an agent needs before calling. The only real gap is the return value and failure behavior on a non-unique or missing oldString match, which the description never addresses.

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 schema already documents all five parameters and baseline is 3. The description nonetheless adds rationale the schema lacks, explaining why activate defaults to false ('may convert the DB') and framing transport indirectly via the production refusal, though it adds no new parameter-level detail. The explicit rationale lifts it one point above baseline.

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 database table's DDL') and immediately distinguishes itself from update_table by noting it avoids resending the whole definition. An agent can identify the exact operation and its scope without opening the 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?

Explicitly routes the agent: 'Prefer this over update_table for small edits like adding a field,' naming both the alternative and the selecting condition. It also states a hard exclusion ('Refuses to run on production profiles'), so both when-to-use and when-not-to-use are covered.

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