Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_table

Overwrite the complete DDL source of an existing DDIC database table, with optional activation and production write protection, to apply full definition changes.

Instructions

Overwrite the source (field definitions) of an EXISTING DDIC database table. Locks, PUTs the whole new DDL source, unlocks, then optionally activates. Refuses to run on production profiles. IMPORTANT: this REPLACES the whole table definition - read it first, edit that text, and send the complete result back. Activating a structure change triggers a DATABASE CONVERSION when the table holds data, so activate defaults to false; review and activate in SE11. Prefer patch_table for small edits.

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>",
      "source": "<source>"
    },
    "name": "update_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete new DDL source - REPLACES the entire table definition
activateNoActivate after writing. Default false - a structure change may convert the DB; activate in SE11 yourself.
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
Behavior5/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: it discloses the lock/PUT/unlock sequence, that activation is optional and defaults to false, that it refuses on production profiles, that activation of a structure change can trigger a DATABASE CONVERSION on populated tables, and that transports are required except for local/$TMP.

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 destructive whole-replacement semantics and the read-first workflow are front-loaded in the first two sentences, side effects follow, and the sibling preference is last. No redundant or filler sentences despite the density of 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?

Covers the behavior an agent needs for a destructive, unannotated mutation: replacement semantics, conversion risk, production refusal, and transport requirement. The only gap is that it says nothing about what the call returns or how failures surface, which matters given there is no output schema.

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 would be 3; the description adds genuine meaning by explaining why activate defaults to false (DB conversion risk) rather than merely restating the default, and by framing source as a complete replacement rather than a diff.

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 (overwrite) and resource (source/field definitions of an EXISTING DDIC database table), with the 'EXISTING' qualifier separating it from create_table and the field-definition scope separating it from update_table_record and update_structure.

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?

Explicitly routes small edits to patch_table and prescribes a read-edit-send workflow for this tool, and the production-profile refusal plus the 'activate in SE11' advice clarify where it should be used. No explicit statement on when a full overwrite is inappropriate beyond the size heuristic, so not quite a 5.

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