Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_cds

Creates and activates a new SAP CDS view (DDLS) from complete source, enforcing name match and blocking production profiles; requires a transport unless the package is $TMP.

Instructions

Create a new CDS view (Data Definition / DDLS) in SAP and activate it. Refuses to run on production profiles. Provide the complete CDS source (e.g. 'define view entity as select from ... { ... }'); the entity name in the source must match cdsName. Needs a transport unless package is $TMP.

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

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete CDS DDL source (define view entity <name> as select from ... { ... })
cdsNameYesCDS entity/DDLS name, e.g. ZKIT_I_PRODUCT. Must match the name in the source.
activateNoActivate after writing the source
transportNoTransport request, e.g. ABLK900123. 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

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does well on guardrails: production refusal, transport requirement, $TMP exception, and the activation side effect. It does not disclose what happens on activation failure, whether a partial write persists, or what permissions/auth are required, which matters for a write tool with zero annotation coverage.

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 compact sentences, front-loaded with the action, then the safety constraint, then the source/transport requirements. No 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 six-parameter write tool with no annotations and no output schema, the description covers the essential preconditions and the activation side effect. It omits return behavior and failure semantics, a modest gap given there is no output schema to explain results.

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 the baseline is 3, but the description adds a cross-parameter constraint not obvious from per-field docs: the entity name in the source must match cdsName, and transport is needed unless the package is $TMP. Some of this duplicates the schema text, capping it below 5.

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 CDS view (Data Definition / DDLS) in SAP and activate it.' The word 'new' plus the object type implicitly separates it from update_cds/patch_cds siblings, though it never names them explicitly.

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?

Gives clear preconditions for use: refuses to run on production profiles, needs a transport unless package is $TMP. It does not explicitly say when to prefer this over update_cds or patch_cds for an existing object, so it stops short of an alternatives statement.

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