Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_srvd

Modify part of an existing SAP service definition by replacing one exact string, then lock, update, unlock, and optionally activate it; production profiles are blocked.

Instructions

Modify PART of an existing service definition (SRVD) without resending the whole source - e.g. exposing one more entity. Reads the current source, replaces oldString with newString (must match EXACTLY ONCE), then locks, PUTs, unlocks, and optionally activates. 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": {
      "srvdName": "<srvdName>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_srvd"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing. Default false.
srvdNameYesService definition name, e.g. ZTJ_UI_PLANT_EMAIL
newStringYesReplacement text
oldStringYesExact existing text to replace. Must occur exactly once - include enough context to be unique.
transportNoTransport request. Omit only for local/$TMP objects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 substantial work: it discloses the read-replace-lock-PUT-unlock-activate sequence and a safety gate (exactly-once match, production refusal). Gaps remain on failure behavior (is the lock released if the PUT fails?) and required authorizations, which matter for a mutation 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?

Two tight sentences, front-loaded with the distinctive value (partial edit) and followed by the operational sequence. The parenthetical '(must match EXACTLY ONCE)' is emphasized exactly where it matters; nothing is filler.

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 the mechanics, the optional activation, and the production guard. It does not say what is returned on success or how partial failures leave the object, which is the remaining meaningful gap.

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 all five parameters are already documented, including the exact-once constraint on oldString. The description reinforces the replace semantics and the optional activation but adds no new per-parameter detail beyond the structured fields; baseline 3 applies.

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?

Specific verb (modify) plus resource (service definition / SRVD) plus an explicit scope qualifier: 'PART of an existing service definition... without resending the whole source.' The example 'exposing one more entity' makes the granularity concrete. It contrasts implicitly with whole-source updates but never names the sibling (e.g. update_srvd), so it falls just short of a 5.

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 a clear condition for use (small, targeted edits where resending the full source is undesirable) and a hard exclusion: 'Refuses to run on production profiles.' That exclusion is the most valuable guidance here. No explicit sibling routing to create_srvd/update_srvd, so not a 5.

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