Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Create and change InfoObjects

bw_write_infoobject
Destructive

Create or update SAP BW/4HANA InfoObjects and create, update, or delete their hierarchies, with activation support, by selecting an operation that defines required parameters.

Instructions

Create or change an InfoObject and its hierarchies. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_write_infoobject", 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_infoobject"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
nodesNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy]
lengthNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
displayNoCharacteristic: How the characteristic is shown in a query by default. [update]
packageNoDevelopment package. [create]
versionNoA = the hierarchy (default), M = only its revised version. [delete_hierarchy]
activateNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy]
data_typeNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
info_areaNoInfoArea to assign the InfoObject to (e.g. "AREA_NAME"). [create]
long_textNoCharacteristic: Long text (60 characters) exists. [update]
mime_typeNoXXL only: MIME type of the content of a raw string (e.g. "application/pdf"). [create]
operationYesOperation — one of: create: Create a new InfoObject — Characteristic (CHA) or Key Figure (KYF) — inactive. Requires name, info_area, description. | update: Update an InfoObject. Requires name. | create_hierarchy: Create a hierarchy for a characteristic and activate it. Requires characteristic, hierarchy_name, description, nodes. | update_hierarchy: Change a hierarchy: its description and/or its tree, then activate it. Requires characteristic, hierarchy_name. | delete_hierarchy: Delete a hierarchy of a characteristic. Requires characteristic, hierarchy_name.
transportNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
unit_typeNoUNI only: "currency" (default) or "unit" (unit of measure). [create]
attributesNoNew attribute list, replacing all existing ones. [update]
fixed_unitNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
lower_caseNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
short_textNoCharacteristic: Short text (20 characters) exists. [update]
with_textsNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
aggregationNoKey figure: Standard aggregation; NO2 means no aggregation. [update]
descriptionNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [4 of 5 operations]
medium_textNoCharacteristic: Medium text (40 characters) exists. [update]
output_lengthNoCharacteristic: Output length, 0 to 250. [update]
xxl_data_typeNoXXL only: STRG (string, default), SSTR (short string) or RSTR (raw string). [create]
attribute_onlyNoThe InfoObject can only be used as an attribute, not in a provider on its own. [update]
characteristicNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy, delete_hierarchy]
decimal_placesNoKey figure: Decimal places shown, 0 to 9, or "default". [update]
fixed_currencyNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
hierarchy_nameNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create_hierarchy, update_hierarchy, delete_hierarchy]
high_precisionNoKey figure: High precision; for the data types CURR, QUAN and DEC. [update]
xxl_attributesNoCharacteristic: The complete list of XXL attributes (XXL InfoObjects holding long text or binary content per… [update]
display_scalingNoKey figure: Scaling of the displayed value as a power of ten, 0 (in 1) to 9, or "default". [update]
extra_long_textNoCharacteristic: Long text is extra long (1333 characters); needs long_text. [update]
infoobject_typeNoInfoObject type: CHA (Characteristic), KYF (Key Figure), UNI (unit or currency InfoObject) or XXL (long text… [create]
aggregation_typeNoKey figure: Aggregation type. [create]
high_cardinalityNoCharacteristic: High cardinality: no SID table for the values. [update]
with_hierarchiesNoCharacteristic: Characteristic can have hierarchies. [update]
with_master_dataNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
conversion_routineNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
hierarchy_intervalsNoCharacteristic: Intervals are permitted in hierarchies. [update]
compound_infoobjectsNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
filter_value_displayNoCharacteristic: How filter values are offered while a query runs. [update]
texts_time_dependentNoCharacteristic: Texts are time-dependent. [update]
exception_aggregationNoKey figure: Aggregation along the reference characteristic, different from the standard aggregation (e.g. "LA… [update]
referenced_infoobjectNoCharacteristic: create it as a reference to this active characteristic (e.g. "IOBJ_NAME"). [create]
authorization_relevantNoCharacteristic: Relevant for the analysis authorization check. [update]
hierarchy_reverse_signNoCharacteristic: The sign of nodes can be reversed. [update]
usable_as_infoproviderNoCharacteristic: The characteristic is offered as a provider of its own — for queries and as an input of a Com… [update]
texts_language_dependentNoCharacteristic: Texts are language-dependent. [update]
unit_currency_infoobjectNoDefined per operation — bw_describe(tool: "bw_write_infoobject", operation: "…") gives each definition. [create, update]
hierarchy_time_dependencyNoCharacteristic: Time dependency of the hierarchies: "none", "entire_hierarchy" (each hierarchy has a validity… [update]
object_specific_data_typeNoKey figure: Data type. [create]
hierarchy_version_dependentNoCharacteristic: Hierarchies are version-dependent. [update]
filter_values_query_executionNoCharacteristic: Where the filter values come from when a query runs. [update]
filter_values_query_definitionNoCharacteristic: Where the filter values come from when a query is defined. [update]
exception_aggregation_referenceNoKey figure: The characteristic the exception aggregation runs along (e.g. "TIME_CHARACTERISTIC"). [update]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed42 schema fields changedv2.1.1
    • addedInput schema / properties / aggregation
      Added value: +{
      +  "description": "Key figure: Standard aggregation; NO2 means no aggregation. [update]",
      +  "enum": [
      +    "SUM",
      +    "MIN",
      +    "MAX",
      +    "NO2"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / aggregation_type / description
      Previous value: -"KYF only. [create]"New value: +"Key figure: Aggregation type. [create]"
    • addedInput schema / properties / attribute_only
      Added value: +{
      +  "description": "The InfoObject can only be used as an attribute, not in a provider on its own. [update]",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / authorization_relevant
      Added value: +{
      +  "description": "Characteristic: Relevant for the analysis authorization check. [update]",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / compound_infoobjects / description
      Previous value: -"Technical names of the compound parent InfoObjects, in order. [create]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_infoobject\", operation: \"…\") gives each definition. [create, update]"
    • changedInput schema / properties / conversion_routine / description
      Previous value: -"CHA only. [create]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_infoobject\", operation: \"…\") gives each definition. [create, update]"
    • changedInput schema / properties / data_type / description
      Previous value: -"CHA only. [create]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_infoobject\", operation: \"…\") gives each definition. [create, update]"
    • removedInput schema / properties / data_type / enum
      Removed value: -[
      -  "CHAR",
      -  "NUMC",
      -  "DATS",
      -  "TIMS",
      -  "SNUMC"
      -]
    • addedInput schema / properties / decimal_places
      Added value: +{
      +  "description": "Key figure: Decimal places shown, 0 to 9, or \"default\". [update]"
      +}
    • addedInput schema / properties / display
      Added value: +{
      +  "description": "Characteristic: How the characteristic is shown in a query by default. [update]",
      +  "enum": [
      +    "key_and_text",
      +    "text",
      +    "key",
      +    "text_and_key",
      +    "long_text",
      +    "medium_text",
      +    "no_display",
      +    "short_text"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / display_scaling
      Added value: +{
      +  "description": "Key figure: Scaling of the displayed value as a power of ten, 0 (in 1) to 9, or \"default\". [update]"
      +}
    • addedInput schema / properties / exception_aggregation
      Added value: +{
      +  "description": "Key figure: Aggregation along the reference characteristic, different from the standard aggregation (e.g. \"LA… [update]",
      +  "type": "string"
      +}
    • addedInput schema / properties / exception_aggregation_reference
      Added value: +{
      +  "description": "Key figure: The characteristic the exception aggregation runs along (e.g. \"TIME_CHARACTERISTIC\"). [update]",
      +  "type": "string"
      +}
    • changedInput schema / properties / extra_long_text / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Long text is extra long (1333 characters); needs long_text. [update]"
    • addedInput schema / properties / filter_value_display
      Added value: +{
      +  "description": "Characteristic: How filter values are offered while a query runs. [update]",
      +  "enum": [
      +    "without_values",
      +    "with_values",
      +    "field_only",
      +    "with_input_help",
      +    "radio_button",
      +    "dropdown_box",
      +    "combo_box",
      +    "input_help_only",
      +    "checkboxes"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / filter_values_query_definition
      Added value: +{
      +  "description": "Characteristic: Where the filter values come from when a query is defined. [update]",
      +  "enum": [
      +    "master_data",
      +    "infoprovider"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / filter_values_query_execution
      Added value: +{
      +  "description": "Characteristic: Where the filter values come from when a query runs. [update]",
      +  "enum": [
      +    "navigation",
      +    "infoprovider",
      +    "master_data"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / hierarchy_intervals / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Intervals are permitted in hierarchies. [update]"
    • changedInput schema / properties / hierarchy_reverse_sign / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: The sign of nodes can be reversed. [update]"
    • changedInput schema / properties / hierarchy_time_dependency / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Time dependency of the hierarchies: \"none\", \"entire_hierarchy\" (each hierarchy has a validity… [update]"
    • changedInput schema / properties / hierarchy_version_dependent / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Hierarchies are version-dependent. [update]"
    • addedInput schema / properties / high_cardinality
      Added value: +{
      +  "description": "Characteristic: High cardinality: no SID table for the values. [update]",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / high_precision
      Added value: +{
      +  "description": "Key figure: High precision; for the data types CURR, QUAN and DEC. [update]",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / info_area / description
      Previous value: -"InfoArea to assign the InfoObject to (e.g. [create]"New value: +"InfoArea to assign the InfoObject to (e.g. \"AREA_NAME\"). [create]"
    • changedInput schema / properties / infoobject_type / description
      Previous value: -"InfoObject type: CHA (Characteristic) or KYF (Key Figure). [create]"New value: +"InfoObject type: CHA (Characteristic), KYF (Key Figure), UNI (unit or currency InfoObject) or XXL (long text… [create]"
    • changedInput schema / properties / infoobject_type / enum
      Previous value: -[
      -  "CHA",
      -  "KYF"
      -]New value: +[
      +  "CHA",
      +  "KYF",
      +  "UNI",
      +  "XXL"
      +]
    • changedInput schema / properties / length / description
      Previous value: -"CHA only. [create]"New value: +"Defined per operation — bw_describe(tool: \"bw_write_infoobject\", operation: \"…\") gives each definition. [create, update]"
    • changedInput schema / properties / long_text / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Long text (60 characters) exists. [update]"
    • changedInput schema / properties / medium_text / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Medium text (40 characters) exists. [update]"
    • addedInput schema / properties / mime_type
      Added value: +{
      +  "description": "XXL only: MIME type of the content of a raw string (e.g. \"application/pdf\"). [create]",
      +  "type": "string"
      +}
    • changedInput schema / properties / object_specific_data_type / description
      Previous value: -"KYF only. [create]"New value: +"Key figure: Data type. [create]"
    • changedInput schema / properties / operation / description
      Previous value: -"Operation — one of: create: Create a new InfoObject — Characteristic (CHA) or Key Figure (KYF) — inactive. Requires name, info_area, description. | update: Update a Characteristic InfoObject: description, the lower case flag, master data, text and hierarchy properties, and/or the attribute list. Requires name. | create_hierarchy: Create a hierarchy for a characteristic and activate it. Requires characteristic, hierarchy_name, description, nodes. | update_hierarchy: Change a hierarchy: its description and/or its tree, then activate it. Requires characteristic, hierarchy_name. | delete_hierarchy: Delete a hierarchy of a characteristic. Requires characteristic, hierarchy_name."New value: +"Operation — one of: create: Create a new InfoObject — Characteristic (CHA) or Key Figure (KYF) — inactive. Requires name, info_area, description. | update: Update an InfoObject. Requires name. | create_hierarchy: Create a hierarchy for a characteristic and activate it. Requires characteristic, hierarchy_name, description, nodes. | update_hierarchy: Change a hierarchy: its description and/or its tree, then activate it. Requires characteristic, hierarchy_name. | delete_hierarchy: Delete a hierarchy of a characteristic. Requires characteristic, hierarchy_name."
    • addedInput schema / properties / output_length
      Added value: +{
      +  "description": "Characteristic: Output length, 0 to 250. [update]",
      +  "type": "number"
      +}
    • changedInput schema / properties / referenced_infoobject / description
      Previous value: -"CHA only. [create]"New value: +"Characteristic: create it as a reference to this active characteristic (e.g. \"IOBJ_NAME\"). [create]"
    • changedInput schema / properties / short_text / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Short text (20 characters) exists. [update]"
    • changedInput schema / properties / texts_language_dependent / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Texts are language-dependent. [update]"
    • changedInput schema / properties / texts_time_dependent / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Texts are time-dependent. [update]"
    • addedInput schema / properties / unit_type
      Added value: +{
      +  "description": "UNI only: \"currency\" (default) or \"unit\" (unit of measure). [create]",
      +  "enum": [
      +    "currency",
      +    "unit"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / usable_as_infoprovider
      Added value: +{
      +  "description": "Characteristic: The characteristic is offered as a provider of its own — for queries and as an input of a Com… [update]",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / with_hierarchies / description
      Previous value: -"CHA only. [update]"New value: +"Characteristic: Characteristic can have hierarchies. [update]"
    • addedInput schema / properties / xxl_attributes
      Added value: +{
      +  "description": "Characteristic: The complete list of XXL attributes (XXL InfoObjects holding long text or binary content per… [update]",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / xxl_data_type
      Added value: +{
      +  "description": "XXL only: STRG (string, default), SSTR (short string) or RSTR (raw string). [create]",
      +  "enum": [
      +    "STRG",
      +    "SSTR",
      +    "RSTR"
      +  ],
      +  "type": "string"
      +}
  2. Addedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds no behavioral context beyond the basic verb: it does not mention activation side effects, transport handling, irreversibility, or what 'change' can overwrite. For a destructive 56-parameter write tool, this is thin.

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 purpose, and no wasted wording. The second sentence is a useful pointer rather than filler, though it shifts detail into schema/describe rather than adding substance.

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 56 parameters, a rich operation enum, and 100% schema coverage, the description is minimally adequate because the schema carries most of the detail. However, for a complex destructive tool with no output schema, it omits behavioral guidance about activation, transport, and irreversible changes that would help an agent invoke it safely.

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 baseline is 3. The description helpfully points to bw_describe for per-operation parameter definitions, but does not itself add meaning beyond what the schema already provides.

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 states a specific verb+resource: 'Create or change an InfoObject and its hierarchies.' That is clear and distinguishes it from generic write tools by naming InfoObjects and hierarchies. It does not explicitly contrast with siblings such as bw_write_adso or bw_write_infosource, so it falls 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by saying it creates or changes InfoObjects, but gives no when-to-use guidance versus alternatives and no when-not-to-use conditions. It points to the operation enum and bw_describe for operation-level detail, but that is schema routing rather than tool-selection guidance.

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