Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_ddlx

Modifies part of an existing CDS metadata extension by replacing an exact string once, such as adding a @UI annotation, and blocks execution on production profiles.

Instructions

Modify PART of an existing CDS metadata extension (e.g. add one @UI annotation). Replaces oldString with newString (must match EXACTLY ONCE). Refuses to run on production profiles.

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>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_ddlx"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing. Default false.
ddlxNameYesMetadata extension name
newStringYesReplacement text
oldStringYesExact existing text to replace. Must occur exactly once.
transportNoTransport request. Omit only for local/$TMP objects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/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 disclose two meaningful guardrails: the oldString must match EXACTLY ONCE, and the tool refuses to run on production profiles. It leaves gaps on error behavior and whether the file is syntax-validated, but the safety-relevant traits are surfaced.

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 purpose, followed by the matching constraint and the safety refusal. No filler or redundant restatement of the tool name.

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 5-parameter mutation tool with no annotations and no output schema, the description covers purpose, matching semantics, and a hard safety exclusion. Only return/error behavior is unaddressed, which is a minor gap given the schema documents all parameters.

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 including activate and transport is documented in the schema. The description adds only a reinforcement of the exact-once constraint on oldString, which the schema already states, so it meets but does not exceed the baseline.

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 ('Modify PART of an existing CDS metadata extension') and clarifies the partial-edit semantics with a concrete example ('add one @UI annotation'). It does not explicitly name update_ddlx as the full-rewrite alternative, so the contrast with siblings is implied by 'PART of' 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 Guidelines3/5

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

Implies when to use it (partial surgical edits via oldString/newString) and states one hard exclusion (production profiles are refused). It never names an alternative such as update_ddlx for whole-file rewrites, so the agent must infer the boundary from the word 'PART'.

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