Skip to main content
Glama

update_dataset_query

Replace the DAX query of a dataset in a Power BI paginated report. Optionally preserve field names to keep existing references valid.

Instructions

Replace the DAX command text of a named dataset. The full DAX expression is accepted verbatim; empty bodies are rejected. Optional alias_strategy='preserve_field_names' positionally rewrites cells to the new DAX columns while keeping existing identifiers — so Fields!X.Value references in expressions keep resolving.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
dax_bodyYesFull DAX (e.g. EVALUATE TOPN(10, 'Sales')).
dataset_nameYes
alias_strategyNoWhen 'preserve_field_names', positionally remap <DataField> cells to the new DAX column list.
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that empty bodies are rejected and explains alias_strategy behavior, but does not mention whether the tool is destructive, requires specific permissions, or if the dataset must exist. Lacks full safety/permission context.

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 consists of two concise sentences. The first sentence states the main action upfront, and the second elaborates on the optional strategy. No extraneous text, effectively front-loaded.

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?

No output schema exists, yet the description does not mention return values or success indicators. It also lacks prerequisites (e.g., dataset must exist) and potential side effects. Adequate but not fully complete given the tool's complexity.

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 50% (2 of 4 parameters have descriptions). The tool description adds value for dax_body (empty bodies rejected) and alias_strategy (positional rewiring), but does not clarify path or dataset_name parameters. The description partially compensates for documentation gaps.

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 clearly states 'Replace the DAX command text of a named dataset', using a specific verb and resource. It distinguishes from sibling tools like update_query_parameter which modify query parameters rather than the DAX command itself.

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?

The description implies usage for replacing DAX queries but does not explicitly specify when to use this tool versus alternatives like update_query_parameter or add_dataset_field. No exclusions or alternative recommendations are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mafaq229/pbirb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server