Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change DataSources

bw_write_datasource
Destructive

Create an SAP BW/4HANA DataSource, set field transfer flags and language designation, or change its delta process.

Instructions

Create a DataSource, set its fields, change its delta process. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_datasource", 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_datasource"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoFields to change and their target transfer flag. [set_fields]
operationYesOperation — one of: create: Create a DataSource (RSDS) on top of a remote entity from the server's field proposal, leaving it inactive. Requires datasource_name, source_system, application_component. | set_fields: Set the transfer flag of one or more DataSource fields (fieldProperties@transfer) and/or the segment language field designation. Requires datasource_name, source_system. | change_delta: Change the delta process of a DataSource (RSDS deltaProperties). Requires datasource_name, source_system, delta_process.
transportNoTransport request (e.g. DEVK900123). [set_fields]
descriptionNoDataSource description (default: the hana_entity value). [create]
hana_entityNoRemote entity technical name (technicalName from bw_list_remote_entities), bound as the adapter externalObjec… [create]
delta_processNoTarget delta process code (e.g. "FIL0"), or empty string for no delta. [change_delta]
source_systemNoDefined per operation — bw_describe(tool: "bw_write_datasource", operation: "…") gives each definition.
language_fieldNoSet to a field name (e.g. "FIELD_NAME") to designate the segment language field, set to "" to clear the desig… [set_fields]
datasource_nameNoDefined per operation — bw_describe(tool: "bw_write_datasource", operation: "…") gives each definition.
application_componentNoApplication component (APCO) to file the DataSource under (e.g. "APCO_NAME"). [create]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.1.1
    • changedInput schema / properties / application_component / description
      Previous value: -"Application component (APCO) to file the DataSource under (e.g. [create]"New value: +"Application component (APCO) to file the DataSource under (e.g. \"APCO_NAME\"). [create]"
    • changedInput schema / properties / delta_process / description
      Previous value: -"Target delta process code (e.g. [change_delta]"New value: +"Target delta process code (e.g. \"FIL0\"), or empty string for no delta. [change_delta]"
    • changedInput schema / properties / language_field / description
      Previous value: -"g. [set_fields]"New value: +"Set to a field name (e.g. \"FIELD_NAME\") to designate the segment language field, set to \"\" to clear the desig… [set_fields]"
    • changedInput schema / properties / transport / description
      Previous value: -"Transport request (e.g. [set_fields]"New value: +"Transport request (e.g. DEVK900123). [set_fields]"
  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 readOnlyHint=false, destructiveHint=true and idempotentHint=false, so the safety profile is covered structurally. The description adds no behavioral context of its own: it does not say that a created DataSource must be activated separately, that changes require a transport request, whether changes are reversible, or what happens to existing fields not listed in set_fields — notable gaps for a destructive multi-operation tool.

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 capabilities, with no filler. The second sentence is dense but earns its place by explaining how to obtain per-operation parameter detail.

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?

With 10 parameters, a fully documented schema and an operation enum that encodes per-operation requirements, the description is adequate but thin. For a destructive tool that spans three distinct operations it omits the surrounding workflow (transport handling, activation after create) and does not route the agent away from the sibling write tools.

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% and the operation enum already documents the required parameters for each operation, so the schema carries the semantics. The description adds only meta-guidance (consult bw_describe for a single operation's definition) rather than meaning about individual parameters, which is the baseline case.

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?

Names a specific verb set and resource — "Create a DataSource, set its fields, change its delta process" — which maps directly to the three enum operations an agent will see. It is clearly a write tool for DataSources, though it never distinguishes itself from siblings like bw_write_adso or bw_write_infosource.

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?

It directs the agent to the operation enum for per-operation requirements and to bw_describe for full parameter definitions, which is genuine routing guidance for invocation. However, it gives no when-to-use versus when-not-to-use guidance relative to the other bw_write_* tools, so selection between write targets is left to inference from the name.

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