Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_ddlx

Creates a CDS metadata extension (DDLX) with UI annotations for a CDS view, enabling Fiori Elements apps; blocks production profiles.

Instructions

Create a new CDS metadata extension (DDLX) - the object that carries UI annotations for a CDS view, which a Fiori Elements app needs. Refuses to run on production profiles. Source looks like: @Metadata.layer: #CORE annotate view ZI_FOO with { @UI.lineItem: [{position: 10}] field; }

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

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete DDLX source (@Metadata.layer: ... annotate view ... with { ... })
activateNoActivate after writing the source
ddlxNameYesMetadata extension name, e.g. ZTJI_PLANT_EMAIL_MDE
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the tool refuses on production profiles, but says nothing about what happens if the DDLX already exists, whether creation is atomic with activation, whether a transport is required, or what the caller gets back.

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?

Two sentences, front-loaded with the object identity before the guardrail and the source sample. The example earns its place; the "which a Fiori Elements app needs" clause is explanatory padding but not harmful.

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 an unannotated write tool with no output schema, the definition covers identity, the production guardrail, and source format, which is a fair amount. It still leaves return values, error/conflict behavior, and transport implications unexplained, which an agent calling a mutating creator would benefit from knowing.

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 every parameter is already documented in the input schema, which sets the baseline at 3. The inline source example (with @Metadata.layer and @UI.lineItem) adds a little concrete meaning about the expected source shape, but most other parameters are untouched.

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?

The description gives a specific verb+resource ("Create a new CDS metadata extension (DDLX)") and then defines what a DDLX is relative to a plain CDS view, so an agent can tell it apart from create_cds conceptually. It never names a sibling tool explicitly, so differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The only usage-flavored statement is "Refuses to run on production profiles," which is a guardrail, not routing guidance. Nothing says when to use this versus update_ddlx, patch_ddlx, or create_cds, nor what preconditions (existing package, transport) must hold.

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