Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_structure

Creates a new DDIC structure (TABL/DS) from DDL source and optionally activates it, blocking execution on production profiles.

Instructions

Create a new DDIC structure (TABL/DS) from DDL source and optionally activate it. Refuses to run on production profiles. Source looks like: define structure zst_foo { field : abap.char(10); }

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>",
      "description": "<description>",
      "packageName": "<packageName>",
      "source": "<source>"
    },
    "name": "create_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete DDL source (define structure <name> { ... })
activateNoActivate after writing the source
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
structureNameYesStructure name, e.g. ZST_PLANT_EMAIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full disclosure burden. It does well on two points: the production-profile refusal and the optional post-write activation. It omits what happens if the structure already exists, whether errors roll back the write, and what a successful call returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, front-loaded with the core action, then the safety constraint, then a minimal source example. Every sentence carries information; nothing is padded. Slightly clipped phrasing ('TABL/DS') is acceptable for a domain audience.

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 6-parameter mutation tool with no output schema, the description covers the essential behavior: creation from DDL, optional activation, and the production guard. It falls short on post-call behavior and existing-object conflicts, which an agent would want before invoking a write tool.

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 the schema already defines all six parameters including defaults and the $TMP convention. The DDL source example adds a concrete format illustration for the 'source' parameter but is not strictly needed, and nothing further is said about transport or activate semantics. Baseline 3 applies when the schema does the heavy lifting.

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: 'Create a new DDIC structure (TABL/DS) from DDL source'. The DDL-source qualifier and the example snippet make clear what kind of creation this is. It does not explicitly distinguish itself from siblings like create_table or create_data_element, which likely handle related object types.

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 description gives one hard condition for use – it refuses to run on production profiles, which is genuinely useful routing information. However it never states when to prefer this over create_table or update_structure/patch_structure, so the agent must infer the boundary from names alone.

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