Skip to main content
Glama
Hollway

mcp-abap-abap-adt-api

by Hollway

createDataElement

Creates a complete DDIC data element with type, labels, and activation in one call, handling validation and transport.

Instructions

Create a DDIC data element and give it its definition, in one call: validate, create, lock, write the type and the four field labels, unlock, activate. The type is either a domain or a built-in ABAP type, not both. createObject alone leaves an element with no type, which cannot be activated. Nothing is rolled back if a step fails - the answer reports each step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesData element name, e.g. ZAPP_STATUS.
labelNoFills all four field labels at once, each cut to the length SAP allows (10/20/40/55); the answer says which were cut.
domainNoDomain the element takes its type from. Alternative to dataType.
dryRunNoValidate the name and show what would be written, creating nothing.
lengthNoLength, for a built-in type.
activateNoActivate at the end (default true).
dataTypeNoBuilt-in ABAP type, e.g. CHAR, NUMC, DEC. Alternative to domain.
decimalsNoDecimal places, for a built-in type.
languageNoLanguage the labels are stored in, and the master language of the object. Defaults to the logon language - not EN, which is what the underlying library would use and which makes the labels invisible to a developer logged on in another language.
longLabelNoLong label, up to 40 characters.
transportNoTransport request number - the request itself, not a developer task. Not needed in $TMP.
searchHelpNoSearch help name.
shortLabelNoShort label, up to 10 characters.
descriptionYesShort description.
mediumLabelNoMedium label, up to 20 characters.
packageNameYesDevelopment package. $TMP needs no transport.
responsibleNoResponsible user; defaults to the logon user.
headingLabelNoHeading, up to 55 characters.
changeDocumentNoLog changes in change documents.
setGetParameterNoSET/GET parameter id.
searchHelpParameterNoSearch help parameter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries the full burden. It discloses meaningful behavioral traits: nothing is rolled back if a step fails, the answer reports each step, labels are cut to SAP's per-label length limits, and the language defaults to the logon language rather than EN (which would hide labels from developers in other languages). This is rich context well beyond the annotations.

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?

Front-loaded with the core purpose and pipeline; the most important behavioral caveats (no rollback, createObject alternative) come early. It is moderately long but every sentence carries information, and none of it repeats the schema.

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 21-parameter creation tool with no output schema, the description covers the workflow, the type exclusivity rule, rollback behavior, label truncation, and the language default. The schema itself is rich at 100% coverage, so the description need not repeat parameter definitions. Slightly more detail on the return/report structure would push it higher, but it is substantially complete.

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 coverage is 100%, so the schema already documents every parameter individually. The description adds workflow-level meaning (the domain/dataType mutual exclusivity, the label-filling behavior) but does not add per-parameter detail beyond the schema. Baseline 3 is appropriate.

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 ('Create a DDIC data element') and enumerates the full pipeline it performs (validate, create, lock, write type and four labels, unlock, activate). It explicitly distinguishes itself from the sibling createObject by noting that createObject leaves an element with no type that cannot be activated, so an agent can tell them apart.

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?

Names the alternative (createObject) and the exact condition that selects it — createDataElement gives the type and definition in one call, createObject leaves the element typeless. Also states that type is either a domain or a built-in ABAP type, not both, which routes correct parameter choice.

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

Deploy Server

Other Tools