Skip to main content
Glama
HorizunGroup

Horizun PBI MCP

Official
by HorizunGroup

pbi_run_dax

Run read-only DAX queries against the active Power BI model to inspect data, test measures, and retrieve execution statistics with configurable row, size, and timeout limits.

Instructions

Ejecuta una consulta DAX de SOLO LECTURA contra el modelo activo.

Solo se admiten formas reconocidas: EVALUATE, DEFINE...EVALUATE y DMVs de $SYSTEM. Cualquier otra cosa se rechaza (politica fail-closed).

max_rows: limite de filas. max_bytes: tope de tamano del resultado, para no devolver megas al cliente. timeout_seconds: timeout del comando. export=true vuelca el resultado completo a outputs/ y devuelve la ruta.

Devuelve columnas, tipos observados, filas, estadisticas de ejecucion y si se trunco (y por que: filas o tamano). Los errores DAX del motor se devuelven tal cual.

query es el unico nombre de la consulta: no hay alias dax, porque query es obligatorio en el contrato congelado y un alias no podria sustituirlo. Ejemplo: pbi_run_dax(query="EVALUATE TOPN(5, 'Ventas')").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
exportNo
max_rowsNo
max_bytesNo
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses rich behavioral detail beyond the annotations: fail-closed grammar enforcement, result truncation reasons (rows vs size), the export side effect writing to outputs/, and passthrough of DAX engine errors. This gives the agent a precise model of what the tool will and will not do, and it is consistent with the annotations.

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 front-loaded with the core purpose, then covers constraints, parameters, return behavior, and an example without wasted sentences. Each sentence adds operational value, and the structure is easy for an agent to scan.

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 5-parameter query tool, the description is complete: it defines the target model, accepted query grammar, fail-closed behavior, result limits, export option, return contents, error handling, and an example invocation. The existence of an output schema further reduces the need to document return structure in prose.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates fully: it explains query's mandatory role and no-alias rule, max_rows, max_bytes, timeout_seconds, and export's side effect of writing to outputs/ and returning the path. Every parameter receives meaningful semantics.

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 states a specific verb and resource: it executes a read-only DAX query against the active model. It clearly distinguishes this from the many sibling tools by specifying the query nature, the accepted DAX forms, and the fail-closed behavior.

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 gives clear usage context: use it for read-only DAX against the active model, and explicitly excludes anything that is not EVALUATE, DEFINE...EVALUATE, or $SYSTEM DMVs. It does not name alternative sibling tools, so it stops short of a 5.

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