Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_ddlx_source

Reads the source of an existing SAP CDS metadata extension (DDLX) so you can inspect current definitions before updating or patching it. Read-only and safe on any profile.

Instructions

Read the source of an existing CDS metadata extension (DDLX) from SAP. Use this before update_ddlx or patch_ddlx to see what is already there. Read-only, safe on any profile.

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>"
    },
    "name": "get_ddlx_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
ddlxNameYesMetadata extension name, e.g. ZGCDS_ME_PP_R003

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does so: "Read-only, safe on any profile" tells the agent there is no auth or profile gating and that nothing is mutated. It stops short of describing failure behavior for a nonexistent DDLX or output size limits, which would matter for an unannotated 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 action, then the ordering guidance, then the safety profile. No redundant or filler wording.

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 one-parameter read tool this is nearly complete: purpose, ordering guidance, and safety are all covered. The only gap is what the returned source looks like or how errors surface, though the absence of an output schema makes that a minor omission.

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% and there is a single required ddlxName with its own example, so the schema already does the work. The description only restates the domain concept (CDS metadata extension/DDLX), adding no naming-format or lookup guidance beyond the schema.

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: "Read the source of an existing CDS metadata extension (DDLX) from SAP". The DDLX qualifier separates it from the many other get_*_source siblings, so an agent can pick it without reading 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 Guidelines5/5

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

Explicitly says to call it before update_ddlx or patch_ddlx to see current state, naming the concrete alternatives and the workflow order that selects this tool. Advisory-only reads are thereby differentiated from the mutating siblings.

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