Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Check and activate objects

bw_activate
Destructive

Activate SAP BW/4HANA objects with a lock handle, run checks without activating, release locks, or activate process chains.

Instructions

Activate an object with the lock handle a write returned, check it without activating, release a lock, or activate a process chain. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_activate", operation: "…") gives the complete parameter definition of one.

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": {
      "operation": "<operation>"
    },
    "name": "bw_activate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoProcess chain technical name (e.g. "CHAIN_NAME"). [activate_process_chain]
operationYesOperation — one of: activate: Activate one BW object (aDSO, Transformation, DTP, InfoObject, InfoSource, DataSource, CompositeProvider, or Aggregation Level). Requires object_type, object_name, lock_handle. | check: Run the activation checks of one BW object without activating it — the "Check" of the modeling tools. Requires object_type, object_name. | unlock: Release a lock on a BW object without activating it. Requires object_type, object_name. | activate_process_chain: Activate an existing Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name.
transportNoTransport request number. [activate]
lock_handleNoLock handle from bw_update_adso or bw_update_transformation. [activate]
object_nameNoDefined per operation — bw_describe(tool: "bw_activate", operation: "…") gives each definition. [activate, check, unlock]
object_typeNoDefined per operation — bw_describe(tool: "bw_activate", operation: "…") gives each definition. [activate, check, unlock]
source_systemNoSource system name. Required when object_type is "rsds" (e.g. "LSYS_NAME"). [activate, check]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.1.1
    • changedInput schema / properties / name / description
      Previous value: -"Process chain technical name (e.g. [activate_process_chain]"New value: +"Process chain technical name (e.g. \"CHAIN_NAME\"). [activate_process_chain]"
  2. Changed9 schema fields changedv2.0.0
    • changedInput schema / properties / lock_handle / description
      Previous value: -"Lock handle from bw_update_adso or bw_update_transformation. Use empty string \"\" for DTP and DataSource (rsds) activation, and for an Aggregation Level (alvl) created with bw_create_aggregation_level."New value: +"Lock handle from bw_update_adso or bw_update_transformation. [activate]"
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Process chain technical name (e.g. [activate_process_chain]",
      +  "type": "string"
      +}
    • changedInput schema / properties / object_name / description
      Previous value: -"Object name (e.g. \"OBJECT_NAME\" or \"DTP_...\"). For rsds, the DataSource name."New value: +"Defined per operation — bw_describe(tool: \"bw_activate\", operation: \"…\") gives each definition. [activate, check, unlock]"
    • changedInput schema / properties / object_type / description
      Previous value: -"Object type: adso, trfn, dtpa, iobj, trcs, rsds (DataSource), hcpr (CompositeProvider), or alvl (Aggregation Level)."New value: +"Defined per operation — bw_describe(tool: \"bw_activate\", operation: \"…\") gives each definition. [activate, check, unlock]"
    • removedInput schema / properties / object_type / enum
      Removed value: -[
      -  "adso",
      -  "trfn",
      -  "dtpa",
      -  "iobj",
      -  "trcs",
      -  "rsds",
      -  "hcpr",
      -  "alvl"
      -]
    • addedInput schema / properties / operation
      Added value: +{
      +  "description": "Operation — one of: activate: Activate one BW object (aDSO, Transformation, DTP, InfoObject, InfoSource, DataSource, CompositeProvider, or Aggregation Level). Requires object_type, object_name, lock_handle. | check: Run the activation checks of one BW object without activating it — the \"Check\" of the modeling tools. Requires object_type, object_name. | unlock: Release a lock on a BW object without activating it. Requires object_type, object_name. | activate_process_chain: Activate an existing Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name.",
      +  "enum": [
      +    "activate",
      +    "check",
      +    "unlock",
      +    "activate_process_chain"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / source_system / description
      Previous value: -"Source system name. Required when object_type is \"rsds\" (e.g. \"LSYS_NAME\")."New value: +"Source system name. Required when object_type is \"rsds\" (e.g. \"LSYS_NAME\"). [activate, check]"
    • changedInput schema / properties / transport / description
      Previous value: -"Transport request number. Required on systems with transport obligation."New value: +"Transport request number. [activate]"
    • changedInput schema / required
      Previous value: -[
      -  "object_type",
      -  "object_name",
      -  "lock_handle"
      -]New value: +[
      +  "operation"
      +]
  3. Changed3 schema fields changedv1.4.0
    • changedInput schema / properties / lock_handle / description
      Previous value: -"Lock handle from bw_update_adso or bw_update_transformation. Use empty string \"\" for DTP and DataSource (rsds) activation."New value: +"Lock handle from bw_update_adso or bw_update_transformation. Use empty string \"\" for DTP and DataSource (rsds) activation, and for an Aggregation Level (alvl) created with bw_create_aggregation_level."
    • changedInput schema / properties / object_type / description
      Previous value: -"Object type: adso, trfn, dtpa, iobj, trcs, rsds (DataSource), or hcpr (CompositeProvider)."New value: +"Object type: adso, trfn, dtpa, iobj, trcs, rsds (DataSource), hcpr (CompositeProvider), or alvl (Aggregation Level)."
    • changedInput schema / properties / object_type / enum
      Previous value: -[
      -  "adso",
      -  "trfn",
      -  "dtpa",
      -  "iobj",
      -  "trcs",
      -  "rsds",
      -  "hcpr"
      -]New value: +[
      +  "adso",
      +  "trfn",
      +  "dtpa",
      +  "iobj",
      +  "trcs",
      +  "rsds",
      +  "hcpr",
      +  "alvl"
      +]
  4. Changed5 schema fields changedv0.9.1
    • changedInput schema / properties / lock_handle / description
      Previous value: -"Lock handle from bw_update_adso or bw_update_transformation. Use empty string \"\" for DTP activation."New value: +"Lock handle from bw_update_adso or bw_update_transformation. Use empty string \"\" for DTP and DataSource (rsds) activation."
    • changedInput schema / properties / object_name / description
      Previous value: -"Object name (e.g. \"OBJECT_NAME\" or \"DTP_...\")."New value: +"Object name (e.g. \"OBJECT_NAME\" or \"DTP_...\"). For rsds, the DataSource name."
    • changedInput schema / properties / object_type / description
      Previous value: -"Object type: adso, trfn, dtpa, iobj, or trcs."New value: +"Object type: adso, trfn, dtpa, iobj, trcs, rsds (DataSource), or hcpr (CompositeProvider)."
    • changedInput schema / properties / object_type / enum
      Previous value: -[
      -  "adso",
      -  "trfn",
      -  "dtpa",
      -  "iobj",
      -  "trcs"
      -]New value: +[
      +  "adso",
      +  "trfn",
      +  "dtpa",
      +  "iobj",
      +  "trcs",
      +  "rsds",
      +  "hcpr"
      +]
    • addedInput schema / properties / source_system
      Added value: +{
      +  "description": "Source system name. Required when object_type is \"rsds\" (e.g. \"LSYS_NAME\").",
      +  "type": "string"
      +}
  5. First observedv0.7.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and non-idempotent, so the safety profile is covered. The description adds real context by tying the lock handle back to the write that produced it and clarifying that check/unlock are non-activating variants. It does not say whether a successful activation consumes the lock, what happens to the lock on failure, or whether a transport is mandatory for activation — meaningful gaps for a destructive 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 sentences, front-loaded with the four operations, with zero preamble or repetition of the title. The second sentence efficiently delegates exhaustive parameter detail to the enum and bw_describe rather than restating it, which is exactly the right economy for a dispatch-style tool.

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 7-parameter, four-operation destructive tool with full schema coverage and explicit annotations but no output schema, the description covers what an agent needs to pick an operation and find its parameters. The main residual gap is post-activation state (lock lifecycle, response shape), which is partly excusable since no output schema exists to describe returns.

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% and the enum description already spells out which parameters each operation requires, so the schema does the heavy lifting. The description contributes only the pointer to bw_describe for complete per-operation parameter definitions, which is a useful routing hint but not new semantic meaning about the parameters themselves. Baseline 3 is appropriate.

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?

The description names four distinct operations with their resources: activating a BW object from a write's lock handle, checking without activating, releasing a lock, and activating a process chain. It also implicitly distinguishes itself from the bw_write_* siblings by noting that the lock handle comes from a write. It is clear, though the per-operation substance is largely pushed to the enum rather than stated in prose.

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?

Each operation carries an explicit use condition: activate after a write returns a lock handle, check to run activation checks without activating, unlock to release a lock without activating. It also routes the agent to bw_describe for per-operation parameter definitions. No explicit 'when not to use' guidance is given (e.g., when to prefer bw_write_process_chain over activate_process_chain), which keeps it below a 5.

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