Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_structure

Overwrites existing DDIC structure's DDL source, replacing entire definition; read current source first and resend complete result. Refuses production; use patch_structure for small edits.

Instructions

Overwrite the DDL source of an EXISTING DDIC structure. REPLACES the whole definition - read it first and send the complete result back. Refuses to run on production profiles. Prefer patch_structure 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": {
      "structureName": "<structureName>",
      "source": "<source>"
    },
    "name": "update_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete new DDL source - REPLACES the entire structure
activateNoActivate after writing. Default false - a structure change may affect users of it.
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

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 disclose the key trait: this is a full destructive overwrite ('REPLACES the whole definition'), not a merge. It also discloses an environment guard (production refusal) and a safety precondition (read-then-send-back). It stops short of saying what happens to downstream consumers of the structure or whether writing without activate takes effect, which are relevant for a mutation tool.

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 destructive semantics before the alternative and the guard. Nothing is redundant and every clause changes agent behavior.

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 destructiveness, the safety precondition, and the environment restriction. Remaining gaps are minor: no statement of return value or whether the change is live before activation.

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 baseline would be 3, but the description adds real meaning beyond the schema by clarifying that 'source' must be the complete definition produced after a read, not a diff. That reframing materially changes how an agent prepares the parameter.

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 ('Overwrite the DDL source of an EXISTING DDIC structure') with the 'EXISTING' qualifier that separates it from create_structure and the whole-definition replacement that separates it from patch_structure. An agent can pick this out of the update_* family without opening a 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 patch_structure for small edits' names the alternative and the condition that selects it. It also adds a hard exclusion ('Refuses to run on production profiles') and a required workflow precondition ('read it first'), which is when-to-use guidance at its most actionable.

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