Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change CompositeProviders

bw_write_composite_provider
Destructive

Create or modify SAP BW CompositeProviders, including fields, inputs, joins, mappings, filters, and settings, so models can be built or changed programmatically.

Instructions

Create or change a CompositeProvider. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_composite_provider", 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_composite_provider"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeNoName of the view node the action works on (e.g. "J1"), for a CompositeProvider with more than one; defaults to the default node. remove_node: the node to remove. [update]
labelNoDefined per operation — bw_describe(tool: "bw_write_composite_provider", operation: "…") gives each definition.
actionNoDefaults to "add_field". [update]
inputsNoSource InfoProviders to attach right away. Required in practice for a Join node. [create]
enabledNoupdate_navigation_attributes: true (default) switches the attributes on, false switches them off. [update]
packageNoDevelopment package (default "$TMP"). [create]
mappingsNoadd_input / update_mapping. Full definition: bw_describe(tool: "bw_write_composite_provider", operation: "update"). [update]
copy_fromNoCopy the structure of this existing CompositeProvider. view_type, inputs and stackable are then irrelevant — they come from the template. [create]
dimensionNoField group name (e.g. "GROUP_NAME"). add_field / add_input / update_mapping: group for the fields the call creates, defaults to CHARACTERISTICS or KEYFIGURES. [update]
info_areaNoInfoArea to create it in (e.g. "AREA_NAME"). [create]
join_typeNoupdate_join: "inner" (default), "leftOuter", etc. — lowercase first letter. [update]
key_pairsNoupdate_join: the join key field pairs, named as they appear on each side's own source. Full definition: bw_describe(tool: "bw_write_composite_provider", operation: "update"). [update]
node_typeNoinsert_node: kind of the new view node. [update]
operationYesOperation — one of: create: Create a CompositeProvider (HCPR). Requires composite_provider_name, label, info_area. | update: Change a CompositeProvider (HCPR): its fields, its source providers, their field mappings, the join condition, or root settings. Requires composite_provider_name.
stackableNoDefined per operation — bw_describe(tool: "bw_write_composite_provider", operation: "…") gives each definition.
transportNoOptional transport request (e.g. DEVK900123). Omit for local objects. [update]
view_typeNoView node type. Defaults to "Join". [create]
left_aliasNoupdate_join / remove_join: alias of the left input. [update]
name_usageNoHow an InfoObject-bound field is exposed. Full definition: bw_describe(tool: "bw_write_composite_provider", operation: "update"). [update]
cardinalityNoupdate_join: defaults to "CN_N". [update]
input_aliasNoremove_input / replace_input / update_mapping: alias of the input (e.g. "U1.ADSO.1"). [update]
right_aliasNoupdate_join / remove_join: alias of the right input. [update]
default_nodeNoupdate_settings: path reference to the default view node (e.g. "#///U1"). [update]
provider_nameNoadd_input / replace_input: technical name of the source InfoProvider to attach, or a SAP HANA view as "<package>::<view>". [update]
provider_typeNoadd_input / replace_input: TLOGO-style suffix used in the generated alias (e.g. "ADSO"). Defaults to "ADSO". [update]
temporal_joinNoupdate_temporal_join: true (default) writes the temporal join, false switches it off. [update]
key_date_fieldNoupdate_temporal_join, with input_alias: the date field of that input the time-dependent inputs are read for; an empty text removes it. [update]
new_field_nameNoupdate_fields: a new name for the one field named in info_object_name. Its mappings and the references of other fields follow. [update]
valid_to_fieldNoupdate_temporal_join, with input_alias of an aDSO: the date field a record is valid to. [update]
info_object_nameNoadd_field / remove_field / update_fields: field name or comma-separated list (e.g. "IOBJ_NAME" or "IOBJ_A,IOBJ_B"). [update]
source_providersNoadd_field only. Comma-separated part provider names or aliases (e.g. "PROVIDER_NAME" or "U1.ADSO.1") to restrict which inputs get a mapping. [update]
valid_from_fieldNoupdate_temporal_join, with input_alias of an aDSO: the date field a record is valid from (e.g. "FIELD_NAME"). Goes with valid_to_field; both empty remove the interval. [update]
field_descriptionNoupdate_fields: the description of the listed fields in this CompositeProvider. [update]
filter_expressionNoupdate_filter: the SQL condition every record of the view node has to meet, written over the fields of the CompositeProvider in double quotes (e.g. "FIELD_NAME" = 'VALUE'); an emp… [update]
new_dimension_nameNoupdate_group: rename the group to this name; its fields move along. [update]
aggregation_behaviourNoupdate_settings. [update]
navigation_attributesNoupdate_navigation_attributes: attributes to switch, by attribute name ("ATTR_NAME") or as "<FIELD_IOBJ>__<ATTR_NAME>". [update]
time_dependent_fieldsNoupdate_temporal_join, with input_alias of a characteristic that has time-dependent attributes: true (default) joins over its validity, false reads its attributes as of a key date. [update]
composite_provider_nameNoDefined per operation — bw_describe(tool: "bw_write_composite_provider", operation: "…") gives each definition.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv2.1.1
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "add_field",
      -  "remove_field",
      -  "add_input",
      -  "remove_input",
      -  "update_mapping",
      -  "update_join",
      -  "remove_join",
      -  "update_fields",
      -  "update_group",
      -  "update_navigation_attributes",
      -  "update_settings"
      -]New value: +[
      +  "add_field",
      +  "remove_field",
      +  "add_input",
      +  "remove_input",
      +  "replace_input",
      +  "insert_node",
      +  "remove_node",
      +  "update_mapping",
      +  "update_join",
      +  "remove_join",
      +  "update_fields",
      +  "update_group",
      +  "update_filter",
      +  "update_temporal_join",
      +  "update_navigation_attributes",
      +  "update_settings"
      +]
    • changedInput schema / properties / dimension / description
      Previous value: -"g. \"GROUP_NAME\"). add_field / add_input / update_mapping: group for the fields the call creates, defaults to CHARACTERISTICS or KEYFIGURES. [update]"New value: +"Field group name (e.g. \"GROUP_NAME\"). add_field / add_input / update_mapping: group for the fields the call creates, defaults to CHARACTERISTICS or KEYFIGURES. [update]"
    • addedInput schema / properties / field_description
      Added value: +{
      +  "description": "update_fields: the description of the listed fields in this CompositeProvider. [update]",
      +  "type": "string"
      +}
    • addedInput schema / properties / filter_expression
      Added value: +{
      +  "description": "update_filter: the SQL condition every record of the view node has to meet, written over the fields of the CompositeProvider in double quotes (e.g. \"FIELD_NAME\" = 'VALUE'); an emp… [update]",
      +  "type": "string"
      +}
    • changedInput schema / properties / info_object_name / description
      Previous value: -"g. \"IOBJ_NAME\" or \"IOBJ_A,IOBJ_B\"). update_navigation_attributes: the one field whose navigation attributes change. [update]"New value: +"add_field / remove_field / update_fields: field name or comma-separated list (e.g. \"IOBJ_NAME\" or \"IOBJ_A,IOBJ_B\"). [update]"
    • changedInput schema / properties / input_alias / description
      Previous value: -"remove_input / update_mapping: alias of the input (e.g. \"U1.ADSO.1\"). [update]"New value: +"remove_input / replace_input / update_mapping: alias of the input (e.g. \"U1.ADSO.1\"). [update]"
    • addedInput schema / properties / key_date_field
      Added value: +{
      +  "description": "update_temporal_join, with input_alias: the date field of that input the time-dependent inputs are read for; an empty text removes it. [update]",
      +  "type": "string"
      +}
    • changedInput schema / properties / key_pairs / description
      Previous value: -"update_join: the join key field pairs, named as they appear on each side's own source. [update]"New value: +"update_join: the join key field pairs, named as they appear on each side's own source. Full definition: bw_describe(tool: \"bw_write_composite_provider\", operation: \"update\"). [update]"
    • removedInput schema / properties / key_pairs / items / properties
      Removed value: -{
      -  "left": {
      -    "type": "string"
      -  },
      -  "right": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / key_pairs / items / required
      Removed value: -[
      -  "left",
      -  "right"
      -]
    • addedInput schema / properties / new_field_name
      Added value: +{
      +  "description": "update_fields: a new name for the one field named in info_object_name. Its mappings and the references of other fields follow. [update]",
      +  "type": "string"
      +}
    • addedInput schema / properties / node
      Added value: +{
      +  "description": "Name of the view node the action works on (e.g. \"J1\"), for a CompositeProvider with more than one; defaults to the default node. remove_node: the node to remove. [update]",
      +  "type": "string"
      +}
    • addedInput schema / properties / node_type
      Added value: +{
      +  "description": "insert_node: kind of the new view node. [update]",
      +  "enum": [
      +    "join",
      +    "union",
      +    "projection",
      +    "aggregation"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / provider_name / description
      Previous value: -"add_input: technical name of the source InfoProvider to attach. [update]"New value: +"add_input / replace_input: technical name of the source InfoProvider to attach, or a SAP HANA view as \"<package>::<view>\". [update]"
    • changedInput schema / properties / provider_type / description
      Previous value: -"add_input: TLOGO-style suffix used in the generated alias (e.g. \"ADSO\"). Defaults to \"ADSO\". [update]"New value: +"add_input / replace_input: TLOGO-style suffix used in the generated alias (e.g. \"ADSO\"). Defaults to \"ADSO\". [update]"
    • changedInput schema / properties / source_providers / description
      Previous value: -"add_field only.g.1\") to restrict which inputs get a mapping. Omit to map the field in every part provider that contains it. [update]"New value: +"add_field only. Comma-separated part provider names or aliases (e.g. \"PROVIDER_NAME\" or \"U1.ADSO.1\") to restrict which inputs get a mapping. [update]"
    • addedInput schema / properties / temporal_join
      Added value: +{
      +  "description": "update_temporal_join: true (default) writes the temporal join, false switches it off. [update]",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / time_dependent_fields
      Added value: +{
      +  "description": "update_temporal_join, with input_alias of a characteristic that has time-dependent attributes: true (default) joins over its validity, false reads its attributes as of a key date. [update]",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / valid_from_field
      Added value: +{
      +  "description": "update_temporal_join, with input_alias of an aDSO: the date field a record is valid from (e.g. \"FIELD_NAME\"). Goes with valid_to_field; both empty remove the interval. [update]",
      +  "type": "string"
      +}
    • addedInput schema / properties / valid_to_field
      Added value: +{
      +  "description": "update_temporal_join, with input_alias of an aDSO: the date field a record is valid to. [update]",
      +  "type": "string"
      +}
  2. Addedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=true, idempotent=false and openWorld=false, so the safety profile is covered and the bar is lower. The description adds the two-mode structure (create vs update) and the create-time requirements (composite_provider_name, label, info_area), plus the note that copy_from overrides view_type/inputs/stackable. It does not describe what an update can destroy, what happens on a name collision at create, or how transport requests affect scope.

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 tight sentences with zero filler, front-loading the verb and resource before the routing advice. Slightly reduced because nearly half the budget is spent pointing at other surfaces rather than on discriminating this tool from its many siblings.

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 39-parameter tool the description deliberately adopts a pointer architecture: operation-level requirements live in the enum descriptions and per-operation detail lives in bw_describe. That is coherent and the agent has enough to start correctly. Marginal gap: no destructive-change warning or guidance on sequencing a create before an update, which matters for a mutation tool with only one required parameter.

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%, so the per-parameter text is already complete and the baseline applies. The description tells the agent that parameters are partitioned by the operation enum and that bw_describe gives the full definition for one operation — useful orientation, but it is largely restating what the operation enum in the schema already says.

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 specific verb+resource: "Create or change a CompositeProvider," and the title reinforces it. It is distinguishable from the bw_write_* siblings by object type even though no sibling is named. It stops short of 5 because it never contrasts itself against neighboring write tools or the read/activate tools that also touch HCPRs.

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 description gives procedural guidance (consult the operation enum, then call bw_describe for a single operation's parameters) which is real usage direction for a tool this large. However it offers no when-to-use/when-not conditions, no prerequisites such as transport or package requirements, and no alternative routing — the agent must infer that create vs update is the branch point.

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