Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Read and write provider data

bw_data
Destructive

Filter BW characteristic values, preview DataSource samples, push records into an aDSO, selectively delete data, and save Analysis for Office workbooks.

Instructions

Work with data rather than definitions: filter values, DataSource preview, push into a write-interface aDSO, selective deletion, save an Analysis for Office workbook. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_data", 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_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoPush mode. [push]
nameNoTechnical name to save under (e.g. "WORKBOOK_NAME"). [save_afo_workbook]
roleNoRole whose menu the workbook is added to (e.g. "ROLE_NAME"). [save_afo_workbook]
folderNoFolder path inside the role menu, separated by "/" (e.g. "Planning/Prices"); default the top level. [save_afo_workbook]
recordsNoDefined per operation — bw_describe(tool: "bw_data", operation: "…") gives each definition. [preview_datasource, push]
job_nameNoName of the background job (default: BW-generated). [delete_selective]
max_rowsNoMaximum number of values to return (default 201). [filter_values]
simulateNoOnly count the matching records, delete nothing (default true). [delete_selective]
adso_nameNoDefined per operation — bw_describe(tool: "bw_data", operation: "…") gives each definition. [push, delete_selective]
file_pathNoLocal .xlsx/.xlsm file to save. [save_afo_workbook]
operationYesOperation — one of: filter_values: Look up valid characteristic values for use in query filters or variable inputs. Requires characteristic_name, search_string. | preview_datasource: Fetch a live data preview / sample rows from a DataSource (RSDS) — reads the first N rows directly from the source system and returns them as a formatted table… Requires datasource_name, source_system. | push: Push data records directly into an aDSO inbound table via the SAP BW/4HANA write interface. Requires adso_name, records. | delete_selective: Selectively delete records from an aDSO by conditions on its characteristics, or simulate the deletion to count the matching records. Requires adso_name, conditions. | save_afo_workbook: Save an Analysis for Office workbook to BW, as Analysis for Office does, and optionally place it in a role menu. Requires name.
overwriteNoReplace an existing workbook of the same name (default false). [save_afo_workbook]
conditionsNoAt least one condition. [delete_selective]
descriptionNoWorkbook text, at most 60 characters. [save_afo_workbook]
info_providerNoOptional. [filter_values]
search_stringNoWildcard search pattern. [filter_values]
source_systemNoLogical source system name (e.g. "LSYS_NAME"). [preview_datasource]
content_base64NoThe workbook as base64, instead of file_path. [save_afo_workbook]
force_deletionNoForce the deletion where BW otherwise refuses it (default false). [delete_selective]
datasource_nameNoDataSource name (e.g. "DS_NAME"). [preview_datasource]
propagate_deletionNoThe cockpit option "Propagate deletion" (default false). [delete_selective]
characteristic_nameNoInfoObject technical name to get values for (e.g. "IOBJ_NAME"). [filter_values]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.1.1
    • changedInput schema / properties / characteristic_name / description
      Previous value: -"InfoObject technical name to get values for (e.g. [filter_values]"New value: +"InfoObject technical name to get values for (e.g. \"IOBJ_NAME\"). [filter_values]"
    • changedInput schema / properties / datasource_name / description
      Previous value: -"DataSource name (e.g. [preview_datasource]"New value: +"DataSource name (e.g. \"DS_NAME\"). [preview_datasource]"
    • changedInput schema / properties / folder / description
      Previous value: -"Folder path inside the role menu, separated by \"/\" (e.g. [save_afo_workbook]"New value: +"Folder path inside the role menu, separated by \"/\" (e.g. \"Planning/Prices\"); default the top level. [save_afo_workbook]"
    • changedInput schema / properties / name / description
      Previous value: -"Technical name to save under (e.g. [save_afo_workbook]"New value: +"Technical name to save under (e.g. \"WORKBOOK_NAME\"). [save_afo_workbook]"
    • changedInput schema / properties / role / description
      Previous value: -"Role whose menu the workbook is added to (e.g. [save_afo_workbook]"New value: +"Role whose menu the workbook is added to (e.g. \"ROLE_NAME\"). [save_afo_workbook]"
    • changedInput schema / properties / source_system / description
      Previous value: -"Logical source system name (e.g. [preview_datasource]"New value: +"Logical source system name (e.g. \"LSYS_NAME\"). [preview_datasource]"
  2. Addedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the risk profile is stated structurally. The description adds real context for preview ('reads the first N rows directly from the source system') and routes the reader to bw_describe and the operation enum for per-operation requirements, but it never mentions the irreversible nature of delete_selective or push, nor any auth or side-effect considerations beyond the annotations.

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 data-vs-definitions framing followed by the operation list and the escape hatch to bw_describe. Nothing is redundant, though the operation list in sentence one partially duplicates the enum that follows.

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 22-parameter, five-operation dispatcher with no output schema, the description covers what each operation is and where to find parameter detail. It does not explain that parameters are operation-scoped (only one subset applies per call), what each operation returns, or any cross-operation constraints — gaps that matter for a tool with this many heterogeneous modes.

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 every parameter already carries an operation tag (e.g. '[delete_selective]'), so the structured data does the heavy lifting. The description's only addition is delegating to bw_describe for per-operation parameter definitions, which the schema itself already repeats for records and adso_name — genuine but marginal value over the schema.

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 names concrete operations (filter values, DataSource preview, push into a write-interface aDSO, selective deletion, save an Analysis for Office workbook) and draws a clear boundary: 'Work with data rather than definitions.' That boundary is what separates it from definition-oriented siblings, though the tool is a five-operation dispatcher rather than one focused verb, which keeps it short of 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?

The phrase 'rather than definitions' implies the data-vs-definition split, and the operation enum supplies a 'Requires …' line per operation, so usage is implied. However, there is no explicit guidance on when to pick this over overlapping siblings such as bw_write_adso, bw_write_datasource, or bw_query_data, and no warnings about when not to use the destructive operations.

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