Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change aDSOs

bw_write_adso
Destructive

Create or modify SAP BW/4HANA aDSO definitions, including fields, key settings, secondary indexes, partitioning, and planning or loading mode.

Instructions

Create or change an aDSO: structure, keys, settings, planning mode. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_adso", 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_adso"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"planning" for interactive planning, "loading" for staging/loading. [set_planning_mode]
labelNoDescription / label for the new aDSO. [create]
actionNoDefined per operation — bw_describe(tool: "bw_write_adso", operation: "…") gives each definition. [create, update]
fieldsNoPure field definitions for action "add_pure_field". [update]
indexesNoFor update_structure: the complete list of secondary indexes on the table of active data, up to 16; [] remove… [update]
packageNoDevelopment package (default "$TMP"). [create]
criteriaNoFor update_structure: the complete list of criteria — per field the value or range of values the aDSO holds,… [update]
settingsNoSettings to apply (only for action "update_settings"). [update]
adso_nameNoDefined per operation — bw_describe(tool: "bw_write_adso", operation: "…") gives each definition.
adso_typeNoaDSO type preset for action "empty" (default "standard"). [create]
dimensionNoField group ("Feldgruppe") to place the field in, given as the bare group name — e.g. "__KEYFIGURES" for the… [update]
info_areaNoInfoArea to create the aDSO in (e.g. "AREA_NAME"). [create]
operationYesOperation — one of: create: Create a new aDSO shell. Requires adso_name, label, info_area. | update: Add/remove fields, change aDSO type/settings, manage key fields, or update individual field properties. Requires adso_name. | set_planning_mode: Switch a planning-enabled aDSO between interactive planning ("planning") and loading ("loading", shown as "Staging" in the BW cockpit). Requires adso_name, mode.
transportNoTransport request number (e.g. DEVK900123). [update]
field_nameNoField name to modify (only for action "update_field_properties"), e.g. "FIELD_NAME" or "AMOUNT_P". [update]
key_fieldsNoList of field names that should be key fields (only for action "manage_keys"). [update]
propertiesNoField properties to update (only for action "update_field_properties"). [update]
hash_fieldsNoFor update_structure: the complete list of hash partitioning fields of an aDSO without a key (a data mart, or… [update]
field_groupsNoFor update_structure: changes to the field groups. [update]
partitioningNoPartitioning to write (only for action "manage_partitions"). [update]
change_fieldsNoFor update_structure: changes to fields that are not based on an InfoObject. [update]
source_systemNoSource system name of the DataSource. [create]
template_nameNoTemplate object to propose fields from (action "from_template" only). [create]
template_typeNoType of the template object for action "from_template": "ADSO" (default) to copy from an existing aDSO, or "R… [create]
infoobject_nameNoInfoObject name or comma-separated list to add or remove (e.g. "IOBJ_NAME" or "IOBJ_A,IOBJ_B"). [update]
write_interfaceNoEnable write interface (pushMode="true"). [create]
initialize_fieldsNoFor update_structure: how fields that are new since the last activation are filled from the data that exists. [update]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv2.1.1
    • addedInput schema / properties / change_fields
      Added value: +{
      +  "description": "For update_structure: changes to fields that are not based on an InfoObject. [update]",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / criteria
      Added value: +{
      +  "description": "For update_structure: the complete list of criteria — per field the value or range of values the aDSO holds,… [update]",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / dimension / description
      Previous value: -"Field group (\"Feldgruppe\") to place the field in, given as the bare group name — e.g. [update]"New value: +"Field group (\"Feldgruppe\") to place the field in, given as the bare group name — e.g. \"__KEYFIGURES\" for the… [update]"
    • addedInput schema / properties / field_groups
      Added value: +{
      +  "description": "For update_structure: changes to the field groups. [update]",
      +  "type": "object"
      +}
    • changedInput schema / properties / field_name / description
      Previous value: -"Field name to modify (only for action \"update_field_properties\"), e.g. [update]"New value: +"Field name to modify (only for action \"update_field_properties\"), e.g. \"FIELD_NAME\" or \"AMOUNT_P\". [update]"
    • addedInput schema / properties / hash_fields
      Added value: +{
      +  "description": "For update_structure: the complete list of hash partitioning fields of an aDSO without a key (a data mart, or… [update]",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / indexes
      Added value: +{
      +  "description": "For update_structure: the complete list of secondary indexes on the table of active data, up to 16; [] remove… [update]",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / info_area / description
      Previous value: -"InfoArea to create the aDSO in (e.g. [create]"New value: +"InfoArea to create the aDSO in (e.g. \"AREA_NAME\"). [create]"
    • changedInput schema / properties / infoobject_name / description
      Previous value: -"InfoObject name or comma-separated list to add or remove (e.g. [update]"New value: +"InfoObject name or comma-separated list to add or remove (e.g. \"IOBJ_NAME\" or \"IOBJ_A,IOBJ_B\"). [update]"
    • addedInput schema / properties / initialize_fields
      Added value: +{
      +  "description": "For update_structure: how fields that are new since the last activation are filled from the data that exists. [update]",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / transport / description
      Previous value: -"Transport request number (e.g. [update]"New value: +"Transport request number (e.g. DEVK900123). [update]"
  2. Addedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=false and idempotentHint=false, so the safety profile is known; the description adds essentially nothing on top of that. It never warns that operations can overwrite structure, never explains that "update_structure" requires complete lists (only the schema hints at this), and never says whether changes need a transport or a subsequent activation. For a destructive mutation tool this is a real gap.

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, then the disambiguation mechanism. No restatement of the title, no filler, and nothing buried at the end.

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?

The description covers the full operation space and points to the schema resolver, which is the minimum an agent needs to call a 27-parameter tool correctly. But for a destructive, non-idempotent write tool with no output schema, it omits lifecycle context an agent would want: whether a transport is required, whether an activation step follows, and what state a failed update leaves behind.

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 coverage is 100% and the operation enum already spells out the required parameters per operation, so the schema does the heavy lifting. The description's one added value is telling the agent to resolve per-operation parameter definitions via bw_describe, which is genuinely useful at 27 parameters, but it adds no meaning about individual fields beyond the schema. 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 opens with a specific verb+resource pair ("Create or change an aDSO") and enumerates the scope of change (structure, keys, settings, planning mode), so an agent can tell what the tool covers without reading 27 parameters. It does not distinguish this from sibling writers such as bw_write_infosource or bw_write_planning, which is the only thing keeping it from a 5.

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 "create or change" plus the operation enum, and the description gives a useful procedural pointer: call bw_describe with a specific operation to get that operation's full parameter definition. There is no when-not guidance, no mention of prerequisites such as needed transport requests or activation after changes, and no routing to alternatives (e.g. bw_activate, bw_delete) for adjacent tasks.

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