Skip to main content
Glama
dnic-dev

bw-modeling-mcp

by dnic-dev

bw_update_ckf

Update a reusable calculated key figure by either replacing its formula completely or making targeted edits that leave the rest untouched, with all changes saved atomically.

Instructions

Change a reusable Calculated Key Figure. Two call forms: pass "formula" to replace the whole expression, or "operations" for targeted edits that leave the rest of the formula untouched — the usual case being "add another summand to a sum" without having to know or rebuild the existing formula. All operations are applied to one document and written in a single save, so a rejected operation leaves the stored formula unchanged rather than half edited.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formulaNoReplacement formula tree (mutually exclusive with "operations"). Formula tree. A node is one of: {"type":"operator","code":"+","operands":[...]} (codes as in the BW formula editor: + - * / , NDIV0, IF, MAX, %A, …); {"type":"component","component_name":"..."} for a reusable CKF/RKF; {"type":"key_figure","name":"..."} for a basic key figure InfoObject; {"type":"constant","value":100}. Operand counts are checked against the operator catalog before anything is written.
decimalsNoNumber of decimal places (0-9).
operationsNoTargeted edits on the existing formula, applied in order.
descriptionNoNew description.
component_nameYesTechnical name of the CKF.
transport_requestNoTransport request to record the change in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses a key behavioral trait: all operations are applied in a single save, so a rejected operation leaves the stored formula unchanged. This is valuable, but it does not cover other behavioral aspects like permissions or reversibility. The atomicity disclosure lifts it above minimum, but it remains partial.

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?

The description is three sentences, front-loaded with the purpose and then clearly presenting the two modes and the atomicity guarantee. No wasted words; every sentence earns its place.

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?

Given the complex nested parameters and rich schema, the description provides essential context about the two editing modes and the atomic save behavior. It doesn't explain return values (no output schema), but the schema fully documents parameters. The missing pieces are minor and don't impede correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds value by explaining the semantic difference between 'formula' (whole replacement) and 'operations' (targeted edits that preserve other parts), and the atomic save behavior that affects how parameters interact. This goes beyond the schema's per-field descriptions.

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 opens with a specific verb and resource ('Change a reusable Calculated Key Figure'), and the two call forms (formula replacement vs. targeted operations) clearly distinguish it from sibling update tools like bw_update_rkf and bw_create_ckf. The purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It explicitly explains when to use each of the two call forms, including the 'usual case' of adding a summand without rebuilding the formula, and states the mutual exclusivity of formula and operations. It does not explicitly name alternative tools or exclusion conditions, but the within-tool routing is clear and contextually sufficient.

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

Deploy Server

Other Tools