Skip to main content
Glama
dnic-dev

bw-modeling-mcp

by dnic-dev

bw_get_query

Read a BW Query's full definition—variables, filters, layout, calculated/restricted measures, exceptions, and cells—including structure member planning settings. Falls back to inactive version if active not found.

Instructions

Read a BW Query definition — variables, filter, layout (rows/columns/free characteristics), calculated and restricted measures, exceptions, and cell definitions. Structure members are reported with their properties: input readiness and disaggregation (the planning settings), decimals, scaling, sign inversion, constant selection, position, nested child members and the inverse formulas that make an input-ready formula writable. Tries the active version first; falls back to the inactive version if not found. format="text" (default): compact human-readable output. format="raw": full parsed JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo"text" (default): structured human-readable output. "raw": full parsed JSON.
query_nameYesTechnical name of the query (e.g. "QUERY_NAME").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.1/5.0
Behavior4/5

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

The description discloses a key behavioral trait: it tries the active version first and falls back to the inactive version if not found. It also explains the two output formats ('text' default compact human-readable, 'raw' full parsed JSON). With no annotations provided, the description carries the burden of behavioral disclosure, and it does so well, though it doesn't mention error behavior or whether the fallback is silent.

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?

The description is dense but well-organized, front-loading the core purpose and then detailing the contents and format options. Every sentence adds information, though the long enumeration of structure member properties could be slightly trimmed without losing essential meaning.

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 tool with two well-documented parameters and no output schema, the description is quite complete. It covers what the tool returns, the format options, and the version fallback behavior. It doesn't describe the exact structure of the 'raw' JSON output, but the absence of an output schema makes that less critical, and the description's detail compensates.

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. The description adds context for the format parameter by explaining what 'text' and 'raw' produce, but this largely mirrors the schema's parameter descriptions. The query_name parameter is straightforward and the description's example adds marginal value.

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 verb ('Read') and resource ('BW Query definition') and enumerates the detailed contents (variables, filter, layout, measures, exceptions, cell definitions, structure member properties). It clearly distinguishes this read tool from sibling tools like bw_create_query, bw_update_query_layout, and bw_query_data, which perform different operations on queries.

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?

The description implies when to use this tool: when you need to read a query definition, including its structure member properties and planning settings. It does not explicitly state when not to use it or name alternatives, but the detailed scope and the format options give clear context. Sibling names like bw_query_data (data retrieval) and bw_update_query_* (modification) provide implicit differentiation.

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