Skip to main content
Glama

update_calculation_item

Modify an existing calculation item in a Power BI calculation group by updating its DAX expression, ordinal, dynamic format string, or renaming it. Unspecified properties remain unchanged.

Instructions

Update an existing calculation item on a calculation group: DAX expression, ordinal, dynamic format string (empty string clears it) and/or rename it. Omitted properties are left unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesthe calculation item to update
tableYesthe calculation group table
newNameNorename the item (optional)
ordinalNonew ordinal (optional)
sessionIdYes
daxExpressionNonew DAX expression (optional)
formatStringExpressionNonew dynamic format string DAX; empty string removes it (optional)
Behavior4/5

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

No annotations are provided, so the description must disclose behavior. It does so by explaining that omitted properties are left unchanged and that an empty format string clears the format. However, it does not describe return values, error conditions, or side effects beyond the mutation.

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?

One compact sentence that front-loads the action and resource, then lists the updateable fields and a key behavioral note. No wasted words.

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?

Lacks output/return information and explicit alternatives, which would be useful given no output schema and no annotations. The partial update and clearing behavior are useful, but the description is not exhaustive.

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 covers 86% of parameter descriptions, and the description adds a key global semantic: omitted properties are unchanged. It also reiterates which parameters correspond to the updateable fields, reinforcing the mapping from description to schema.

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?

Clearly states the tool updates an existing calculation item and enumerates the editable fields (DAX expression, ordinal, format string, rename). This distinguishes it from sibling tools like set_calc_item_ordinal or set_dynamic_format_string, which target single attributes.

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?

Provides clear context: it's a partial update tool where omitted properties are unchanged. This implies usage for updating one or more fields at once, but it does not explicitly exclude alternatives like set_calc_item_ordinal for single-field updates.

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/cyphonica/powerbi-pbix-mcp'

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