Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change InfoSources

bw_write_infosource
Destructive

Create or update an SAP BW/4HANA InfoSource, including fields, key order, aggregation, and DataStore-like settings, to model and maintain data sources.

Instructions

Create or change an InfoSource. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_infosource", 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_infosource"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoInfoSource name (e.g. "INFOSOURCE_NAME").
fieldsNoFields to add at the end of the field list. Full definition: bw_describe(tool: "bw_write_infosource", operation: "update"). [update]
packageNoDevelopment package (default "$TMP"). [create]
info_areaNoInfoArea to create the InfoSource in (e.g. "AREA_NAME"). [create]
operationYesOperation — one of: create: Create a new InfoSource (TRCS) shell. Requires name, description, info_area. | update: Change an InfoSource: description, the aggregation and DataStore-like switches, fields, key and field order. Requires name.
transportNoTransport request number (e.g. DEVK900123). Only required if the BW system requires transport assignment. [update]
key_fieldsNoThe complete key in key order; an empty list removes the key. [update]
aggregationNoSwitch "Aggregation" of the InfoSource: records with the same key are aggregated. [update]
descriptionNoDefined per operation — bw_describe(tool: "bw_write_infosource", operation: "…") gives each definition.
field_orderNoField names in the order they are to come first; fields not named follow in their present order. [update]
change_fieldsNoChanges to existing fields, one entry per field. Full definition: bw_describe(tool: "bw_write_infosource", operation: "update"). [update]
remove_fieldsNoField names to remove from the InfoSource (e.g. FIELD_NAME). Other existing fields are preserved. [update]
datastore_likeNoSwitch that makes the InfoSource behave like a DataStore object. Turning it on adds the record mode field if it is missing; that field cannot be removed while the switch is on. [update]
copy_from_object_nameNoTechnical name of the source object to copy fields from. Required when copy_from_object_type is set. [create]
copy_from_object_typeNoType of the source object: ADSO (aDSO), HCPR (CompositeProvider), RSDS (DataSource), IOBJ (InfoObject), TRCS (another InfoSource). [create]
copy_from_source_systemNoSource system name (required when copy_from_object_type is RSDS, e.g. "PC_FILE"). [create]
copy_from_object_sub_typeNoSubType for IOBJ only: ATTR (Attribute), TEXT (Text), HIER (Hierarchy). [create]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.1.1
    • addedInput schema / properties / aggregation
      Added value: +{
      +  "description": "Switch \"Aggregation\" of the InfoSource: records with the same key are aggregated. [update]",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / change_fields
      Added value: +{
      +  "description": "Changes to existing fields, one entry per field. Full definition: bw_describe(tool: \"bw_write_infosource\", operation: \"update\"). [update]",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / copy_from_object_type / description
      Previous value: -"Type of the source object: ADSO (aDSO), HCPR (CompositeProvider), RSDS (DataSource), IOBJ (InfoObject). [create]"New value: +"Type of the source object: ADSO (aDSO), HCPR (CompositeProvider), RSDS (DataSource), IOBJ (InfoObject), TRCS (another InfoSource). [create]"
    • changedInput schema / properties / copy_from_object_type / enum
      Previous value: -[
      -  "ADSO",
      -  "HCPR",
      -  "RSDS",
      -  "IOBJ"
      -]New value: +[
      +  "ADSO",
      +  "HCPR",
      +  "RSDS",
      +  "IOBJ",
      +  "TRCS"
      +]
    • addedInput schema / properties / datastore_like
      Added value: +{
      +  "description": "Switch that makes the InfoSource behave like a DataStore object. Turning it on adds the record mode field if it is missing; that field cannot be removed while the switch is on. [update]",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / field_order
      Added value: +{
      +  "description": "Field names in the order they are to come first; fields not named follow in their present order. [update]",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / fields / description
      Previous value: -"Fields to add (or whose label to update). Full definition: bw_describe(tool: \"bw_write_infosource\", operation: \"update\"). [update]"New value: +"Fields to add at the end of the field list. Full definition: bw_describe(tool: \"bw_write_infosource\", operation: \"update\"). [update]"
    • changedInput schema / properties / info_area / description
      Previous value: -"InfoArea to create the InfoSource in (e.g. \"MCPBW\"). [create]"New value: +"InfoArea to create the InfoSource in (e.g. \"AREA_NAME\"). [create]"
    • addedInput schema / properties / key_fields
      Added value: +{
      +  "description": "The complete key in key order; an empty list removes the key. [update]",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / operation / description
      Previous value: -"Operation — one of: create: Create a new InfoSource (TRCS) shell. Requires name, description, info_area. | update: Update an InfoSource — change description, add/remove fields, and update labels. Requires name."New value: +"Operation — one of: create: Create a new InfoSource (TRCS) shell. Requires name, description, info_area. | update: Change an InfoSource: description, the aggregation and DataStore-like switches, fields, key and field order. Requires name."
  2. Addedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and non-idempotency, so the safety profile is covered elsewhere. The description itself adds no behavioral context for a destructive mutation: it does not mention transport assignment requirements, that update can drop fields or clear the key, or whether an activation step follows. It is consistent with the annotations but silent beyond them.

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 short sentences with no filler, and the core action is front-loaded before the delegation hint. Nothing is redundant, though the second sentence is a pointer rather than substantive content.

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 17-parameter, non-idempotent, destructive mutation tool with no output schema, the description leans entirely on the rich schema and the bw_describe escape hatch. That progressive-disclosure strategy is defensible, but the top-level text omits operational context an agent would want, such as transport handling and post-change activation, so it is only minimally complete.

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 per-parameter meaning is already carried by the schema, and the baseline of 3 applies. The description adds a small amount by explaining that the operation enum enumerates each operation's requirements and by pointing to bw_describe for full definitions of nested structures such as fields and change_fields.

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?

"Create or change an InfoSource" gives a specific verb pair and a specific resource, and the resource name (InfoSource) separates it from the bw_write_adso / bw_write_datasource / bw_write_infoobject siblings without needing their schemas. It stops short of explicitly stating when this resource is the right one versus those alternatives.

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 tells the agent how to resolve the operation choice (read the enum, then call bw_describe for the full definition of one operation), which is real procedural guidance. It offers no when-to-use / when-not-to-use criteria, no prerequisites, and no note that create and update have different required inputs beyond what the enum text already says.

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