Skip to main content
Glama
HorizunGroup

Horizun PBI MCP

Official
by HorizunGroup

pbi_export_pbix

Exports .pbip projects to genuine .pbix files by automating Power BI Desktop's File > Save As flow, with validation and refresh control.

Instructions

Exporta el proyecto .pbip a un archivo .pbix de verdad.

Microsoft no publica ninguna API para convertir el formato, asi que esto automatiza el flujo OFICIAL: abre el proyecto en Power BI Desktop y usa Archivo > Guardar como. No se fabrica el .pbix a mano -un zip cosido con TOM abre a veces y rompe otras-.

Antes de tocar Desktop se resuelve la ruta exacta, se valida el TMDL, se comprueba que el destino cabe en Windows y, si existe y pasas overwrite=true, se respalda. Si el destino existe y no lo pasas, falla ANTES de abrir ninguna ventana.

refresh: 'auto' intenta refrescar y declara el resultado sin adornarlo; 'required' no exporta si no pudo refrescar -para no entregar un .pbix como si tuviera datos-; 'skip' guarda el estado que el modelo tenga ahora.

Que el dialogo desaparezca NO es que se haya guardado: se comprueba que el archivo existe, que es .pbix y no .pbit, que pesa mas de cero, que su fecha es de esta ejecucion y que el lector de .pbix lo puede abrir con informe y modelo dentro. Si saved_as_verified no es true, la respuesta no es un exito.

leave_open=true (por defecto) deja abierto exactamente el .pbix generado y lo selecciona como modelo activo. Nunca cierra una ventana que no abrio esta operacion.

Requiere Windows, Power BI Desktop instalado y el extra export (pip install "horizun-pbi-mcp[export]"). El cuadro de guardado se conduce por UI Automation desde un proceso aparte: los mensajes Win32 cambian lo que se LEE en el desplegable de tipo sin avisar a la aplicacion, y Desktop sigue guardando un proyecto. pbi_capabilities dice en pbix_export si esta disponible aqui y ahora.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refreshNoauto
timeoutNo
out_pathNo
overwriteNo
pbip_pathNo
leave_openNo
request_idNo
confirm_reuseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior1/5

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

The description is rich in behavioral detail: it verifies the saved file, never closes windows it did not open, backs up before overwriting, and explains UI Automation caveats. However, it explicitly says that with overwrite=true an existing destination is overwritten, which contradicts the annotation destructiveHint=false. Per the rubric, a description that contradicts annotations receives a score of 1 and must be flagged.

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 long but well structured: purpose first, then preconditions, refresh behavior, verification, leave_open, and environment requirements. Some phrasing like 'un zip cosido con TOM' adds color and explanatory value. It is dense enough that most sentences earn their place, though a few could be tightened.

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?

The description is unusually complete on workflow, preconditions, verification, and failure behavior, and an output schema exists to document return values. However, with 8 parameters and no schema descriptions for any of them, leaving five parameters undocumented in the description creates a real completeness gap. The annotation contradiction further undermines trust in the definition.

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 description coverage is 0%, so the description carries the burden of explaining parameters. It does explain refresh, overwrite, and leave_open with real semantics. However, out_path, pbip_path, timeout, request_id, and confirm_reuse are left unexplained, leaving meaningful gaps for an agent trying to invoke the tool correctly.

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 first sentence states a specific verb and resource: 'Exporta el proyecto .pbip a un archivo .pbix'. It also clarifies this is the official Power BI Desktop 'Guardar como' flow, which distinguishes it from sibling tools like pbi_convert_pbix_to_pbip, pbi_open_in_desktop, or other exporters.

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 concrete usage conditions: Windows, Power BI Desktop, the export extra, and a direct pointer to check pbi_capabilities for pbix_export availability. It also explains when the tool fails before opening windows and what each refresh mode does. It does not explicitly compare against sibling export 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

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