Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change process chains

bw_write_process_chain
Destructive

Create or modify SAP BW/4HANA process chains by managing steps, edges, DTPs, program and decision steps, and error links. Use it to build or update chain structures through operations.

Instructions

Create or change a process chain: steps, edges, DTP and program steps, error links, decision variants. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_process_chain", 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_write_process_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget step. Same reference forms as "from". [add_edge, remove_edge]
dtpNoDTP variant name to append (e.g. "DTP_NAME"). [append_dtp]
dtpsNoOptional. [add_error_links]
fromNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_edge, remove_edge]
modeNo"load": add a switch to load mode (PLSWITCHL). [add_plswitch]
nameNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition.
stepNoStep to remove. [remove_step]
afterNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [4 of 12 operations]
edgesNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update]
localNoCall location. [add_program]
stepsNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update]
aroundNomode "bracket" only: the step to enclose (usually the DTP that loads the aDSO). [add_plswitch]
beforeNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [4 of 12 operations]
statusNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_edge, remove_edge]
adsoactNoOptional aDSO name (e.g. "ADSO_NAME"). [append_dtp]
formulaNoBranch condition formula (BW decision formula syntax), e.g. "GET_SEGMENT( ) = ' 3'". [create_decision_variant]
new_dtpNoDTP variant name to set instead (e.g. "DTP_NAME_NEW"). [swap_dtp]
old_dtpNoDTP variant name currently in the chain (e.g. "DTP_NAME_OLD"). [swap_dtp]
packageNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, create_decision_variant]
programNoABAP program / report to execute (e.g. "REPORT_NAME"). [add_program]
variantNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_program, add_decision]
activateNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [11 of 12 operations]
infoareaNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update]
edge_modeNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [4 of 12 operations]
operationYesOperation — one of: create: Create a Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, infoarea, description, steps, edges. | update: Replace the step model (nodes and edges) of an existing Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, steps, edges. | append_dtp: Add one DTP load step (optionally followed by its own DSO activation step) to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, dtp. | swap_dtp: Swap one DTP load variant for another in an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, old_dtp, new_dtp. | add_program: Add an "Execute ABAP Program" step (RSPC process type ABAP, "Programm ausführen") to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, program. | add_decision: Add a DECISION step (branch on a decision variant) to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, variant, other_branch_to. | add_plswitch: Add planning mode switch steps for planning-enabled aDSOs to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API: PLSWITCHL switches the aDSOs… Requires name, mode, datastores. | add_edge: Add one dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_edge: Remove the dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_step: Remove one step (node) from a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, step. | add_error_links: Add on-error (negative) links to an existing Process Chain (RSPC) by mirroring the existing on-success (positive) out-edges of its DTP load steps, via the BW/4… Requires name. | create_decision_variant: Create a DECISION process variant (a standalone TLOGO object) for use as a branch/decision step in a Process Chain, via the BW/4HANA Cockpit REST API. Requires name, description, formula.
reconnectNotrue (default): bridge the gap so each predecessor of the removed step links to each of its successors. [remove_step]
datastoresNoPlanning-enabled aDSOs the step switches (e.g. ["ADSO_NAME"]). [add_plswitch]
else_labelNoLabel of the ELSE/second branch. [create_decision_variant]
sub_statusNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [add_edge, remove_edge]
then_labelNoLabel of the THEN/first branch. [create_decision_variant]
continue_onNoBranch on which the existing strand continues: "then" (default, the first branch of the variant) or "else" (t… [add_decision]
descriptionNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [6 of 12 operations]
predecessorNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [append_dtp, add_program, add_plswitch]
synchronousNoCall mode. [add_program]
else_event_noNoEVENTNO of the ELSE branch. [create_decision_variant]
then_event_noNoEVENTNO of the THEN branch (referenced by chain branch edges via sub_status). [create_decision_variant]
trigger_eventNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition. [create, update]
other_branch_toNoExisting step the other branch leads to. [add_decision]
program_packageNoOptional package of the report (cosmetic value-help enrichment; the server re-derives it when omitted). [add_program]
transport_requestNoDefined per operation — bw_describe(tool: "bw_write_process_chain", operation: "…") gives each definition.
program_descriptionNoOptional report description (cosmetic). [add_program]
refresh_descriptionNoIf true (default), pull the new variant's step description from its metadata. [swap_dtp]
variant_descriptionNoOptional variant description (cosmetic). [add_program]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changedv2.1.1
    • changedInput schema / properties / activate / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [10 of 11 operations]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [11 of 12 operations]"
    • changedInput schema / properties / adsoact / description
      Previous value: -"g. [append_dtp]"New value: +"Optional aDSO name (e.g. \"ADSO_NAME\"). [append_dtp]"
    • changedInput schema / properties / after / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [append_dtp, add_program, add_plswitch]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [4 of 12 operations]"
    • changedInput schema / properties / before / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [append_dtp, add_program, add_plswitch]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [4 of 12 operations]"
    • addedInput schema / properties / continue_on
      Added value: +{
      +  "description": "Branch on which the existing strand continues: \"then\" (default, the first branch of the variant) or \"else\" (t… [add_decision]",
      +  "enum": [
      +    "then",
      +    "else"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / datastores / description
      Previous value: -"Planning-enabled aDSOs the step switches (e.g. [add_plswitch]"New value: +"Planning-enabled aDSOs the step switches (e.g. [\"ADSO_NAME\"]). [add_plswitch]"
    • changedInput schema / properties / description / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [5 of 11 operations]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [6 of 12 operations]"
    • changedInput schema / properties / dtp / description
      Previous value: -"DTP variant name to append (e.g. [append_dtp]"New value: +"DTP variant name to append (e.g. \"DTP_NAME\"). [append_dtp]"
    • changedInput schema / properties / edge_mode / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [append_dtp, add_program, add_plswitch]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [4 of 12 operations]"
    • changedInput schema / properties / formula / description
      Previous value: -"Branch condition formula (BW decision formula syntax), e.g. [create_decision_variant]"New value: +"Branch condition formula (BW decision formula syntax), e.g. \"GET_SEGMENT( ) = ' 3'\". [create_decision_variant]"
    • changedInput schema / properties / new_dtp / description
      Previous value: -"DTP variant name to set instead (e.g. [swap_dtp]"New value: +"DTP variant name to set instead (e.g. \"DTP_NAME_NEW\"). [swap_dtp]"
    • changedInput schema / properties / old_dtp / description
      Previous value: -"DTP variant name currently in the chain (e.g. [swap_dtp]"New value: +"DTP variant name currently in the chain (e.g. \"DTP_NAME_OLD\"). [swap_dtp]"
    • changedInput schema / properties / operation / description
      Previous value: -"Operation — one of: create: Create a Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, infoarea, description, steps, edges. | update: Replace the step model (nodes and edges) of an existing Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, steps, edges. | append_dtp: Add one DTP load step (optionally followed by its own DSO activation step) to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, dtp. | swap_dtp: Swap one DTP load variant for another in an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, old_dtp, new_dtp. | add_program: Add an \"Execute ABAP Program\" step (RSPC process type ABAP, \"Programm ausführen\") to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, program. | add_plswitch: Add planning mode switch steps for planning-enabled aDSOs to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API: PLSWITCHL switches the aDSOs… Requires name, mode, datastores. | add_edge: Add one dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_edge: Remove the dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_step: Remove one step (node) from a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, step. | add_error_links: Add on-error (negative) links to an existing Process Chain (RSPC) by mirroring the existing on-success (positive) out-edges of its DTP load steps, via the BW/4… Requires name. | create_decision_variant: Create a DECISION process variant (a standalone TLOGO object) for use as a branch/decision step in a Process Chain, via the BW/4HANA Cockpit REST API. Requires name, description, formula."New value: +"Operation — one of: create: Create a Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, infoarea, description, steps, edges. | update: Replace the step model (nodes and edges) of an existing Process Chain (RSPC) via the BW/4HANA Cockpit REST API. Requires name, steps, edges. | append_dtp: Add one DTP load step (optionally followed by its own DSO activation step) to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, dtp. | swap_dtp: Swap one DTP load variant for another in an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, old_dtp, new_dtp. | add_program: Add an \"Execute ABAP Program\" step (RSPC process type ABAP, \"Programm ausführen\") to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, program. | add_decision: Add a DECISION step (branch on a decision variant) to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, variant, other_branch_to. | add_plswitch: Add planning mode switch steps for planning-enabled aDSOs to an existing Process Chain (RSPC), via the BW/4HANA Cockpit REST API: PLSWITCHL switches the aDSOs… Requires name, mode, datastores. | add_edge: Add one dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_edge: Remove the dependency (edge) between two existing steps of a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, from, to. | remove_step: Remove one step (node) from a Process Chain (RSPC), via the BW/4HANA Cockpit REST API. Requires name, step. | add_error_links: Add on-error (negative) links to an existing Process Chain (RSPC) by mirroring the existing on-success (positive) out-edges of its DTP load steps, via the BW/4… Requires name. | create_decision_variant: Create a DECISION process variant (a standalone TLOGO object) for use as a branch/decision step in a Process Chain, via the BW/4HANA Cockpit REST API. Requires name, description, formula."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create",
      -  "update",
      -  "append_dtp",
      -  "swap_dtp",
      -  "add_program",
      -  "add_plswitch",
      -  "add_edge",
      -  "remove_edge",
      -  "remove_step",
      -  "add_error_links",
      -  "create_decision_variant"
      -]New value: +[
      +  "create",
      +  "update",
      +  "append_dtp",
      +  "swap_dtp",
      +  "add_program",
      +  "add_decision",
      +  "add_plswitch",
      +  "add_edge",
      +  "remove_edge",
      +  "remove_step",
      +  "add_error_links",
      +  "create_decision_variant"
      +]
    • addedInput schema / properties / other_branch_to
      Added value: +{
      +  "description": "Existing step the other branch leads to. [add_decision]",
      +  "type": "string"
      +}
    • changedInput schema / properties / package / description
      Previous value: -"Target package. [create_decision_variant]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [create, create_decision_variant]"
    • changedInput schema / properties / program / description
      Previous value: -"ABAP program / report to execute (e.g. [add_program]"New value: +"ABAP program / report to execute (e.g. \"REPORT_NAME\"). [add_program]"
    • changedInput schema / properties / transport_request / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [10 of 11 operations]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition."
    • changedInput schema / properties / variant / description
      Previous value: -"Optional ABAP report (SE38) selection variant name (e.g. [add_program]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_process_chain\", operation: \"…\") gives each definition. [add_program, add_decision]"
  2. Addedv2.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the risk profile is covered. The description adds little beyond that: it does not say that create/update replace the entire step model, that removal operations can silently disconnect steps without reconnect, or that changes may need activation/transport. The substance lives in the operation enum, not the description.

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 capability statement and followed by the resolution mechanism. No filler, no repetition of enum contents or annotation facts.

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 12-operation, 43-parameter destructive tool with no output schema, the description correctly points to the two authoritative sources (the operation enum and bw_describe) rather than restating them. What is missing is any warning about irreversible effects on existing chain topology or the role of activation and transport_request.

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 nominally 100%, but many entries are placeholders ('Defined per operation — bw_describe(...)'), so the description's explanation of that delegation pattern genuinely helps an agent resolve them. It still does not explain any individual parameter's meaning beyond what the schema shows, keeping it below a 5.

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?

States a clear verb pair (create/change) and a specific resource (process chain), then enumerates the object types it covers: steps, edges, DTP and program steps, error links, decision variants. That is enough for an agent to distinguish it from bw_write_dtp or bw_write_query. It stops short of naming a sibling alternative to route away to.

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?

The second sentence gives real procedural guidance: the operation enum carries per-operation requirements and bw_describe resolves individual parameter definitions. However, it never says when to prefer this tool over bw_write_dtp (DTP creation) or when not to use it, so the when-to-use decision is only implied by the resource name.

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