Skip to main content
Glama
HorizunGroup

Horizun PBI MCP

Official
by HorizunGroup

pbi_rename_measure

Rename a Power BI measure and update all references safely. Prevents broken visuals and empty reports by rewriting DAX expressions and visual JSON in one transaction.

Instructions

Renombra una medida actualizando TODO lo que la referencia.

Renombrar a mano rompe el informe en silencio: cualquier visual o medida que apuntara al nombre viejo abre y sale VACIO, sin error. Esta tool compila primero y escribe en UNA transaccion: la cabecera TMDL, las expresiones DAX de otras medidas que usan [old_name], y los visual.json del informe. Devuelve la lista de lo tocado.

Limite honesto: las referencias DAX CALIFICADAS (Tabla[old]) no se reescriben —pueden ser una columna homonima de otra tabla, y adivinar seria corromper—; si quedan, salen en warnings con su ubicacion, igual que las de bookmarks y filtros.

Solo pbip (escribe modelo E informe a la vez: exige Desktop CERRADO). dry_run=true (defecto) devuelve el plan sin escribir.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
dry_runNo
new_nameYes
old_nameYes
request_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond annotations (readOnlyHint=false), the description discloses detailed behavioral context: it compiles first, writes in a single transaction, updates the TMDL header, DAX expressions, and visual.json, returns a list of touched items, and warns about qualified references not being rewritten. This is rich, honest disclosure consistent with the annotation that it is a write operation without being destructive.

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 four dense sentences that cover the action, rationale, technical process, limitations, and prerequisites. It is front-loaded with the main verb and every sentence adds essential information without fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex rename-update tool, the description covers prerequisites (pbip only, Desktop closed), the transactional process, safety (dry_run default), output (list of touched items), and limitations (qualified references, warnings). Since an output schema exists, return values need no further explanation; this is complete enough for an agent to use 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 coverage is 0%, but the description compensates partially: it explains dry_run defaults to true and returns a plan without writing, and it contextualizes old_name/new_name via examples like `[old_name]` and `Tabla[old]`. However, it does not explicitly define table or request_id parameters, leaving some parameter semantics to inference.

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 'Renombra una medida actualizando TODO lo que la referencia', a specific verb (rename) and resource (measure) plus the key scope (updating all references). This clearly distinguishes it from sibling tools like pbi_update_measure or pbi_delete_measure, making the tool's unique purpose immediately evident.

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 states when to use it: for renaming measures safely instead of manually renaming, which would break visuals/measures silently. It also specifies a clear prerequisite: only works on .pbip projects and requires Desktop closed. However, it does not explicitly name alternative tools, so it falls short of a full when-to-use/when-not-to-use map.

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/HorizunGroup/horizun-pbi-mcp'

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