Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_bdef

Replace the complete source of an existing SAP behavior definition (BDEF), optionally activate it after writing, and use patch for small edits; unavailable on production profiles.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete new BDEF source - REPLACES the entire definition
activateNoActivate after writing. Default false.
bdefNameYesBehavior definition name = its root entity, e.g. ZTJI_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.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the lock/PUT/unlock sequence, that activation is a separate optional step, that the operation is wholesale destructive replacement, and that production profiles are rejected. These are exactly the behavioral facts an agent cannot get from the schema, and there is no contradiction to flag.

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?

Four short sentences, each doing distinct work: identification, mechanics, destructive-replacement warning, and alternative routing. The replacement hazard is placed before the workflow instruction, so the highest-risk fact is front-loaded.

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 lock-and-overwrite mutation with no output schema, the description covers safety, sequencing, preconditions, and the correct calling pattern. The only mild gap is what the agent gets back or how failures mid-write are handled, though that is secondary given the schema documents transport and activation.

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 schema already defines all four parameters; the description adds real meaning on top by stressing that 'source' must be the complete edited text rather than a fragment, and by framing 'activate' as a post-write step. Slight over-baseline credit for reinforcing the replace-vs-merge semantics of the primary parameter.

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 and resource ('Overwrite the source of an EXISTING behavior definition (BDEF)') and immediately narrows the scope with 'EXISTING', which separates it from create_bdef. The final sentence names patch_bdef as the lighter-weight sibling, so an agent can route between them without inspecting schemas.

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 explicit routing guidance ('Prefer patch_bdef for small edits'), an explicit precondition ('Refuses to run on production profiles'), and a required workflow ('read it first, edit that text, and send the complete result back'). When-not-to-use and the alternative are both named rather than inferred.

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