Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_data_element

Creates a new SAP DDIC data element from a domain or built-in type, configures field labels, and can activate it; refuses production profiles.

Instructions

Create a new DDIC data element (DTEL/DE) and optionally activate it. Either point it at a domain (typeKind='domain', typeName=) or give a built-in type (typeKind='predefinedAbapType' with dataType/length). Field labels are what users see on screens. 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": {
      "dataElementName": "<dataElementName>",
      "description": "<description>",
      "packageName": "<packageName>"
    },
    "name": "create_data_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoLength when typeKind='predefinedAbapType'
activateNoActivate after creating
dataTypeNoDDIC type when typeKind='predefinedAbapType', e.g. CHAR
decimalsNoDecimals when typeKind='predefinedAbapType'
typeKindNo'domain' to reference a domain, or 'predefinedAbapType' for a built-in typedomain
typeNameNoDomain name when typeKind='domain', e.g. ZDOM_PLANT
longLabelNoLong field label (max 40 chars)
transportNoTransport request. Omit only for $TMP.
shortLabelNoShort field label (max 10 chars)
descriptionYesShort description
mediumLabelNoMedium field label (max 20 chars)
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
headingLabelNoHeading field label (max 55 chars)
dataElementNameYesData element name, e.g. ZDE_PLANT

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the production-profile refusal and that activation is optional, but says nothing about failure modes (existing element name), required authorizations, transport locking, or whether a failed activation leaves an inactive object behind.

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?

Four sentences, front-loaded with the action, then the mode split, then the label caveat and the safety constraint. Every sentence carries distinct information and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter creation tool with no output schema and no annotations, the description covers the essential type-mode decision, activation, and the production guard. It leaves out what the call returns (object handle, activation result), transport implications beyond the schema's note, and behavior on name collisions.

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 is 3; the description earns a point by explaining the conditional coupling between typeKind and the typeName/dataType/length parameters, which the schema only states per-field. It also adds user-facing meaning to the label parameters ('Field labels are what users see on screens').

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 plus the domain abbreviation: 'Create a new DDIC data element (DTEL/DE) and optionally activate it.' The resource is unambiguous against the sibling set (create_domain, create_table, create_structure), so an agent can route 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly lays out the two mutually exclusive modes: 'Either point it at a domain (typeKind=domain, typeName=<domain>) or give a built-in type (typeKind=predefinedAbapType with dataType/length)', which is the main decision an agent must make. It also names one hard precondition ('Refuses to run on production profiles') but gives no guidance on prerequisites such as creating the referenced domain first, or when to use this versus create_domain.

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