Skip to main content
Glama
HorizunGroup

Horizun PBI MCP

by HorizunGroup

pbi_create_measure

Create or replace a DAX measure in Power BI Desktop or PBIP projects with validation and before/after diff.

Instructions

Crea (o reemplaza con overwrite=true) una medida DAX.

Valida que la tabla exista y que la medida no exista salvo overwrite. data_category: opcional, p.ej. "ImageUrl" para medidas que devuelven un data-URI SVG (Power BI las renderiza como imagen en tablas/matrices). Devuelve el diff antes/despues.

mode='both' esta temporalmente deshabilitado bajo la politica estricta: 'live' necesita Power BI Desktop abierto y 'pbip' lo necesita cerrado, asi que una sola llamada aplicaria solo uno de los dos destinos. Elige 'live' o 'pbip'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNolive
nameYes
tableYes
overwriteNo
expressionYes
request_idNo
descriptionNo
data_categoryNo
format_stringNo
display_folderNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses key behaviors: validation of table/measure existence, the overwrite behavior, the data_category rendering context, the mode restriction ('both' disabled), and that it returns a diff. This is substantive, though it omits details like permission requirements and error handling specifics.

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 a single paragraph with a clear opening statement about the core action, followed by validation behavior, an optional parameter example, a note about return value, and a mode restriction warning. It is moderately concise and front-loaded, though the mode='both' explanation adds length but earns its place.

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?

Given the tool's complexity (10 parameters, no annotations, 0% schema coverage), the description covers the main purpose and a few key parameters but leaves many parameters unexplained. The existence of an output schema somewhat mitigates the need to describe return values, but the incomplete parameter documentation limits contextual completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all 10 parameters. It only explains data_category (with an example) and mode (with the live/pbip/both distinction), and partially implies overwrite semantics. The other seven parameters (table, name, expression, description, format_string, display_folder, request_id) are left undocumented in both the schema and description, leaving a significant gap.

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 the tool creates or replaces (with overwrite=true) a DAX measure, using the specific verb 'crea' and the resource 'medida DAX'. It distinguishes itself from sibling tools like pbi_update_measure and pbi_delete_measure by focusing on creation/replacement.

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 provides clear context: it validates that the table exists and that the measure doesn't already exist unless overwrite is true. It also gives explicit guidance on the mode parameter, explaining that 'both' is disabled and advising to choose 'live' or 'pbip'. However, it does not explicitly exclude alternatives like pbi_update_measure when modifying an existing measure.

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