Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_srvd

Overwrite an existing SAP service definition (SRVD) by replacing its complete source, with locking, optional activation, and production-profile protection. Use for full replacements, not small edits.

Instructions

Overwrite the source of an EXISTING service definition (SRVD). Locks, PUTs the whole new source, unlocks, then optionally activates. Refuses to run on production profiles. REPLACES the whole definition - read it first, edit that text, and send the complete result back. Prefer patch_srvd 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": {
      "srvdName": "<srvdName>",
      "source": "<source>"
    },
    "name": "update_srvd"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete new SRVD source - REPLACES the entire definition
activateNoActivate after writing. Default false.
srvdNameYesService definition name, e.g. ZTJ_UI_PLANT_EMAIL
transportNoTransport request. Omit only for local/$TMP objects.

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 full burden and does well: it discloses the lock/PUT/unlock/activate sequence, that the write is destructive and total, and that production profiles are refused. It stops short of stating what happens if the operation fails mid-sequence (e.g. lock release) or what permissions/transport state are required.

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 tight sentences, front-loaded with the operation and hazard, then the replacement guidance, then the sibling routing. No redundant wording; the capitalized emphasis is used sparingly and only on load-bearing points.

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 4-parameter mutation with no annotations and no output schema, the description covers workflow, hazards, and alternatives well. The remaining gap is return/result behavior and failure handling, which an agent might reasonably want before invoking a full-overwrite operation.

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 description coverage is 100%, so the parameters are already documented, and the description largely restates the schema's 'REPLACES the entire definition' and 'activate after writing' semantics. It adds the important behavioral note that the source must be a complete read-edit-return result, but no format or transport syntax detail 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 (overwrite) and resource (SRVD source) and narrows scope to EXISTING definitions. It explicitly distinguishes itself from both create_srvd (implied, existing only) and patch_srvd, so an agent can route correctly without opening another 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?

Gives a clear when-to-use (full replacement, requires read-then-edit workflow), a when-not (small edits should use patch_srvd), and an environmental exclusion (refuses to run on production profiles). The alternative is named along with the condition that selects it.

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