Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Run loads and processes

bw_run
Destructive

Execute SAP BW/4HANA DTPs and process chains, restart failed steps, activate or delete requests, and manage remodeling requests via one operation-based tool.

Instructions

Execute: run a DTP, start a process chain or repeat a failed step, activate or delete a request, run a remodeling request. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_run", 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_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoProcess chain technical name (e.g. "CHAIN_NAME"). [process_chain]
startNoStart time for "execute" and "restart": "immediate" (default) or an ISO 8601 timestamp to schedule the backgr… [remodeling]
actionNoAction to perform (default "execute"). [remodeling]
log_idNoLog ID of the run, from bw_list_process_chain_runs or bw_list_process_chain_last_status. [restart_chain_step]
targetNoTarget InfoProvider technical name (e.g. "OBJECT_NAME"). [delete_request]
storageNoDefined per operation — bw_describe(tool: "bw_run", operation: "…") gives each definition. [activate_request, delete_request]
chain_idNoProcess chain technical name (e.g. "CHAIN_NAME"). [restart_chain_step]
dtp_nameNoTechnical name of the DTP to run (e.g. "DTP_..."). [dtp]
operationYesOperation — one of: dtp: Start (execute) a run of an existing, active DTP. Requires dtp_name. | process_chain: Start a process chain once, now, as the BW/4HANA Cockpit does with "Execute" (asynchronous): the run goes to the background under the technical user of the cha… Requires name. | restart_chain_step: Repeat a failed or canceled step of a process chain run, as the process chain monitor does with "Repeat": the step runs again as a new instance within the same… Requires chain_id, log_id. | activate_request: Activate loaded data (DSO request activation): move a finished load from the Inbound Table into the active data table and change log. Requires request_tsn. | delete_request: Delete load requests from an InfoProvider, removing the data they brought in along with their entry in the request management. | remodeling: Start, restart or reset a remodeling request. Requires info_provider, remodeling_rule.
process_idNoStep number as bw_get_process_chain_run_detail shows it (e.g. "8-1"). [restart_chain_step]
request_tsnNoDefined per operation — bw_describe(tool: "bw_run", operation: "…") gives each definition. [activate_request, delete_request]
target_typeNoTarget object type (default "ADSO"). [delete_request]
all_requestsNoDelete every request of target in one run (default false): roll back the activations, then delete what is lef… [delete_request]
wait_secondsNoWait up to this many seconds for the run to end before answering (0 = answer right after the start, the defau… [process_chain]
info_providerNoInfoProvider technical name the rule belongs to. [remodeling]
request_numberNoOptional request GUID from bw_list_remodeling_requests output. [remodeling]
remodeling_ruleNoRemodeling rule ID, from bw_list_remodeling_requests output. [remodeling]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.1.1
    • changedInput schema / properties / chain_id / description
      Previous value: -"Process chain technical name (e.g. [restart_chain_step]"New value: +"Process chain technical name (e.g. \"CHAIN_NAME\"). [restart_chain_step]"
    • changedInput schema / properties / dtp_name / description
      Previous value: -"Technical name of the DTP to run (e.g. [dtp]"New value: +"Technical name of the DTP to run (e.g. \"DTP_...\"). [dtp]"
    • changedInput schema / properties / name / description
      Previous value: -"Process chain technical name (e.g. [process_chain]"New value: +"Process chain technical name (e.g. \"CHAIN_NAME\"). [process_chain]"
    • changedInput schema / properties / process_id / description
      Previous value: -"Step number as bw_get_process_chain_run_detail shows it (e.g. [restart_chain_step]"New value: +"Step number as bw_get_process_chain_run_detail shows it (e.g. \"8-1\"). [restart_chain_step]"
    • changedInput schema / properties / target / description
      Previous value: -"g. [delete_request]"New value: +"Target InfoProvider technical name (e.g. \"OBJECT_NAME\"). [delete_request]"
  2. Addedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=false, so the safety profile is carried by structured data. The description adds the useful meta-rule that the operation enum is authoritative for requirements and that bw_describe holds the full per-operation parameter set. It says nothing itself about irreversibility, permissions, or what a call returns, deferring all of that elsewhere.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the operative verb and the list of capabilities, with zero filler. The second sentence is a genuinely useful dispatch instruction rather than padding. Slightly terse for a tool of this breadth, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, 17-parameter, multi-operation tool with no output schema, the description covers capability and defers parameter detail to bw_describe, which is a legitimate but indirect design. It omits what a successful invocation returns (run id, log id, completion status) and gives no warning about the destructive operations it hosts, leaving the agent dependent on a follow-up call and on the annotations.

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% across 17 parameters, and the per-operation requirements are documented in the operation enum, so the schema does the heavy lifting. The description contributes only the instruction to consult bw_describe for each operation's parameter definition, which is a pointer rather than added semantics. 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?

The description opens with a specific verb and enumerates the concrete resources it acts on (DTP runs, process chains, chain steps, load requests, remodeling requests), so an agent knows exactly what class of action this is. It does not distinguish itself from siblings such as bw_activate or bw_delete even though it exposes activate_request and delete_request operations, which leaves a real ambiguity.

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?

Usage is implied by the operation list: the agent can infer which operations map to which intent. The description also gives a concrete routing hint to bw_describe(tool: "bw_run", operation: "…") for per-operation parameters. It never states when to pick this tool over bw_activate/bw_delete, nor any prerequisites or exclusions.

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