Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change planning objects

bw_write_planning
Destructive

Create or update SAP BW planning objects such as aggregation levels, planning functions, sequences, filters, and currency/unit conversion types using a single operation-based call.

Instructions

Create or change planning objects: aggregation levels, planning functions, sequences, filters, conversion types. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_planning", 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_planning"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocurrency translation or unit conversion. [create_conversion_type]
nameNoTechnical name of the new conversion type (e.g. "OBJECT_NAME"). [create_conversion_type]
ruleNoFor function types with several rules: the 1-based rule that conditions and parameters apply to. Defaults to 1. [create_function, update_function]
timeNoCurrency: the time reference of the rate. [create_conversion_type]
labelNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_aggregation_level, create_function]
stepsNoThe steps in execution order. Full definition: bw_describe(tool: "bw_write_planning", operation: "create_sequence"). [create_sequence, update_sequence]
actionNoDefaults to "add_fields". [update_aggregation_level]
fieldsNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_aggregation_level, update_aggregation_level]
sourceNoSource currency or unit. [create_conversion_type]
targetNoTarget currency or unit. [create_conversion_type]
factorsNoUnit: where the conversion factors come from, in order (default T006). [create_conversion_type]
inverseNoCurrency: use the inverse rate. [create_conversion_type]
packageNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [5 of 9 operations]
info_areaNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_aggregation_level, create_function, create_sequence]
operationYesOperation — one of: create_aggregation_level: Create a new Aggregation Level (TLOGO ALVL) on top of a planning-enabled InfoProvider (aDSO or CompositeProvider), for Integrated Planning / embedded BPC. Requires aggregation_level_name, label, info_area, info_provider. | update_aggregation_level: Add fields to or remove fields from an existing Aggregation Level (TLOGO ALVL). Requires aggregation_level_name, fields. | create_function: Create a Planning Function (TLOGO PLSE) of a given function type on an aggregation level. Requires planning_function_name, label, aggregation_level, function_type. | update_function: Change an existing Planning Function (TLOGO PLSE): the characteristic usage (FIELDS_TO_BE_CHANGED / FIELD_FOR_CONDITIONS / NONE), the conditions, single-value… Requires planning_function_name. | create_sequence: Create a planning sequence with its steps in execution order: planning functions, each with the filter that selects its data, and input templates. Requires sequence_name, description, steps. | update_sequence: Change a planning sequence: replace its steps with the list given, in that order, and/or change its description. Requires sequence_name. | create_filter: Create a planning filter on an aggregation level — the selection a planning sequence step or an input template works on — with its restrictions in the same cal… Requires filter_name, aggregation_level, description. | update_filter: Change a planning filter: set the values or the variable of a characteristic (replacing its current restriction), remove a restriction, or change the descripti… Requires filter_name. | create_conversion_type: Create a currency translation type (kind "currency", TLOGO CTRT) or a unit conversion type (kind "unit", TLOGO UOMT), saved straight to the active version — th… Requires kind, name, description.
rate_typeNoCurrency: exchange rate type (e.g. "M"). [create_conversion_type]
transportNoTransport request number. Required on systems with transport obligation.
char_usageNoCharacteristic usage per characteristic. Full definition: bw_describe(tool: "bw_write_planning", operation: "create_function"). [create_function, update_function]
conditionsNoConditions of the rule, per characteristic. Full definition: bw_describe(tool: "bw_write_planning", operation: "create_function"). [create_function, update_function]
operationsNoRestrictions to set or remove, applied in order. Full definition: bw_describe(tool: "bw_write_planning", operation: "create_filter"). [create_filter, update_filter]
parametersNoParameter values of the rule, as shown in the parameter tree of bw_get_planning_function. Full definition: bw_describe(tool: "bw_write_planning", operation: "create_function"). [create_function, update_function]
descriptionNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [6 of 9 operations]
filter_nameNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_filter, update_filter]
function_typeNoPlanning function type (e.g. "0RSPL_FORMULA", "0RSPL_COPY", "0RSPL_DELETE", or a custom type). [create_function]
info_providerNoTechnical name of the underlying planning-enabled InfoProvider — an aDSO or a CompositeProvider (e.g. "OBJECT… [create_aggregation_level]
rate_specificNoCurrency: which rate of the rate type to use (default No). [create_conversion_type]
sequence_nameNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_sequence, update_sequence]
via_fi_modulesNoCurrency: translate through the FI modules (default true). [create_conversion_type]
aggregation_levelNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_function, create_filter]
factors_infoobjectNoUnit: the InfoObject with its own conversion factors, for the InfoObject-based modes. [create_conversion_type]
rate_type_variableNoCurrency: variable that supplies the exchange rate type, instead of rate_type. [create_conversion_type]
aggregation_level_nameNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_aggregation_level, update_aggregation_level]
in_transformation_onlyNoCurrency: offered in transformations only. [create_conversion_type]
planning_function_nameNoDefined per operation — bw_describe(tool: "bw_write_planning", operation: "…") gives each definition. [create_function, update_function]
exchange_rate_infoobjectNoCurrency: InfoObject that supplies the exchange rate; omit for the rate from the rate tables. [create_conversion_type]
allow_initial_source_valueNoUnit: allow an initial source unit. [create_conversion_type]
no_conversion_if_factors_not_foundNoUnit: leave the value unconverted when no factor is found. [create_conversion_type]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.1.1
    • changedInput schema / properties / function_type / description
      Previous value: -"Planning function type (e.g. [create_function]"New value: +"Planning function type (e.g. \"0RSPL_FORMULA\", \"0RSPL_COPY\", \"0RSPL_DELETE\", or a custom type). [create_function]"
    • changedInput schema / properties / info_provider / description
      Previous value: -"Technical name of the underlying planning-enabled InfoProvider — an aDSO or a CompositeProvider (e.g. [create_aggregation_level]"New value: +"Technical name of the underlying planning-enabled InfoProvider — an aDSO or a CompositeProvider (e.g. \"OBJECT… [create_aggregation_level]"
    • changedInput schema / properties / name / description
      Previous value: -"Technical name of the new conversion type (e.g. [create_conversion_type]"New value: +"Technical name of the new conversion type (e.g. \"OBJECT_NAME\"). [create_conversion_type]"
    • changedInput schema / properties / rate_type / description
      Previous value: -"Currency: exchange rate type (e.g. [create_conversion_type]"New value: +"Currency: exchange rate type (e.g. \"M\"). [create_conversion_type]"
  2. Addedv2.0.0

TDQS

A3.6/5.0
Behavior2/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, and the description is consistent with them. But the description adds no behavioral context beyond annotations—it does not mention irreversibility, transport obligations, permission requirements, or what exactly is affected by each write.

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 with no wasted wording. The purpose and object scope are front-loaded, followed immediately by the parameter-discovery strategy.

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 37-parameter, multi-operation write tool, the description correctly delegates operation-specific requirements to the operation enum and full parameter definitions to bw_describe. This is adequate given the rich schema and annotations, though it could have noted that effects are destructive or that transport requests may be required.

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 schema carries the parameter documentation burden. The description adds useful meta-guidance that the operation enum lists requirements and bw_describe provides the complete definition for one operation, but this mostly repeats what the schema already references and does not explain individual parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific write scope—'Create or change planning objects'—and enumerates the exact resource types: aggregation levels, planning functions, sequences, filters, and conversion types. This clearly distinguishes it from sibling write tools such as bw_write_adso, bw_write_query, and bw_write_transformation.

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 the object-type list and the instruction to inspect the operation enum and call bw_describe for per-operation parameters. However, there is no explicit when-to-use or when-not-to-use guidance relative to sibling tools, and no alternatives are named.

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