Skip to main content
Glama

apply_rename_plan

Apply a rename plan to batch-rename Power BI objects and automatically update all DAX, M, and report references in a single atomic operation. Skips invalid renames with reasons.

Instructions

APPLY an audit_naming rename plan through the propagating rename machinery: planJson = audit_naming's renamePlan ({renames:[{objectType, table, oldName, newName}]}, a bare array also accepted). Rows that cannot apply (missing object, collision, malformed) are skipped WITH the reason; the survivors run as ONE atomic batch - TOM renames plus every DAX/M reference rewrite in a single SaveChanges, report bindings rewritten too when reportSource is given. One result row per rename.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planJsonYesthe rename plan json: audit_naming's renamePlan, {renames:[...]}, or a bare array of {objectType, table, oldName, newName}
sessionIdYes
reportSourceNooptional report to rewrite: a reportSessionId (open_report), a pbirSessionId (read_pbir), or a PBIR .pbix/PBIP folder path
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure, and it excels: it details skip-with-reason behavior, atomic batch execution, single SaveChanges, DAX/M reference rewriting, conditional report binding rewriting, and the result row format. This gives the agent a thorough understanding of side effects and guarantees.

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 dense but well-structured: it starts with the core action, then details the input format, error handling, atomicity, optional reportSource behavior, and output. Every sentence contributes meaningful information without redundancy, making it efficient for an agent to parse.

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?

The description covers most critical aspects: input format, validation behavior, atomic execution, optional report rewriting, and result row count. It lacks explicit mention of prerequisites (e.g., open session) or permission requirements, but given the complexity and presence of sessionId, the description is sufficiently complete for tool selection and 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 description coverage is 67% (planJson and reportSource described, sessionId not). The description adds significant value by specifying the exact accepted formats for planJson (audit_naming's renamePlan object or bare array) and the possible types for reportSource (reportSessionId, pbirSessionId, PBIR path). This goes beyond the schema's basic 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 uses the specific verb 'APPLY' with a clear resource ('audit_naming rename plan') and differentiates itself from sibling rename tools by focusing on a pre-generated plan and propagating rename machinery. It clearly identifies the tool's purpose without ambiguity.

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 explicitly ties the tool to audit_naming's renamePlan, indicating when it should be used (to apply a batch rename plan). It does not explicitly mention alternatives or exclusions, but the context strongly implies it is for complex, multi-object renames that need atomic execution and reference rewriting.

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