Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_cds

Replaces the complete DDL source of a CDS view in SAP and optionally activates it after writing; use for full rewrites, not small edits.

Instructions

Overwrite the source of an EXISTING CDS view (DDLS). Locks, PUTs the whole new DDL source, unlocks, then optionally activates. Refuses to run on production profiles. IMPORTANT: this REPLACES the whole CDS source - read it first, edit that text, and send the complete result back. Keep the entity name unchanged. Prefer patch_cds for small edits.

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

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete new CDS DDL source - REPLACES the entire definition
cdsNameYesCDS entity/DDLS name, e.g. ZKIT_I_PRODUCT
activateNoActivate after writing. Default false - CDS activation is safe (no DB conversion); pass true to activate in one call.
transportNoTransport request. Omit only for local/$TMP objects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/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 profile well: it discloses the lock/PUT/unlock/activate sequence, that the source is wholesale replaced, the production guard, and that activation is safe after write. It does not explain failure handling (e.g., whether a lock is released if the PUT errors) or permission/transport-lock prerequisites.

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?

Front-loaded with the destructive replacement semantics, then the operational sequence, then the alternative. Every sentence is load-bearing and the caps on 'EXISTING' and 'REPLACES' target the two highest-risk misreadings.

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 destructive write tool with 4 documented params and no output schema, the description covers workflow, hazards, and the sibling alternative. Only the response shape and post-activation outcome are left unstated, a minor gap for a PUT-style tool.

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; the description adds constraints beyond the schema, notably 'Keep the entity name unchanged' for cdsName and the sequencing of the optional activation step relative to the write.

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?

Specific verb and resource: 'Overwrite the source of an EXISTING CDS view (DDLS)', with the object type named in SAP terms. It contrasts with both patch_cds (small edits) and, implicitly, create_cds by the 'EXISTING' qualifier.

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?

States explicit routing: 'Prefer patch_cds for small edits', and prescribes a required workflow (read first, edit that text, send the complete result back). It also names a hard exclusion: refuses to run on production profiles.

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