Skip to main content
Glama
dnic-dev

bw-modeling-mcp

by dnic-dev

bw_get_variable

Retrieve and verify a BW Variable's definition—reference characteristic, processing and selection types, input readiness—after creation, to ensure the stored object matches the intended modeling settings.

Instructions

Read a reusable BW Variable: reference characteristic, description, variable type, processing type, selection type, input type, input readiness, reusability, package and InfoArea. Use it after bw_create_variable to confirm what was stored — the modeling API accepts an enum literal it does not know, saves its default and still reports the object as consistent, so a create alone proves nothing about the processing or selection type. Reading the variable through a query does not answer this: a query resolves the technical name of a variable reference, never its definition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: "text" (default) for the parsed definition, "raw" for the unmodified XML.
variable_nameYesTechnical name of the variable (e.g. "VAR_NAME").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it excels. It discloses a significant behavioral trap: the modeling API accepts an unknown enum literal, saves its default, and still reports consistency, making create results unreliable. It also explains the limitation of query-based reading with respect to variable definitions. This is rich, non-obvious behavioral context beyond mere 'this is a getter.'

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 detailed yet tight. The first sentence states the action and scope, the second provides the usage context and the API pitfall, and the third closes with the key limitation of alternative approaches. Every sentence earns its place; there is no filler or repetition.

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 read-only tool with only two parameters, the description covers what the tool returns (an explicit list of fields), when to use it, and why alternatives fail. It does not describe the exact output structure or error cases, but given there is no output schema and the tool's scope is narrow, the description is sufficiently complete for an agent to call it correctly.

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 already documents both parameters: variable_name as the technical name and format with its enum values and defaults. The description adds no parameter-specific details, but none are needed since the schema carries the semantic load. Baseline 3 is appropriate.

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: 'Read a reusable BW Variable,' followed by an explicit list of fields (reference characteristic, description, variable type, processing type, etc.). It also distinguishes the tool from query-based reading, which resolves technical names rather than definitions, making its purpose unambiguous even among many siblings.

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

Usage Guidelines5/5

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

The description explicitly states when to use it: 'Use it after bw_create_variable to confirm what was stored.' It also explains why a create alone is insufficient, due to the modeling API silently accepting unknown enum literals, and why a query is not an alternative. This gives clear when-to-use and when-not-to-use guidance.

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