Skip to main content
Glama
HorizunGroup

Horizun PBI MCP

Official
by HorizunGroup

pbi_close_desktop

Destructive

Closes the Power BI Desktop instance tied to a specific project, enabling TMDL edits by freeing the file. Requires confirmation to discard unsaved changes, and verifies closure.

Instructions

Cierra la instancia de Power BI Desktop que sirve ESE proyecto.

Es la salida que faltaba del ciclo editar-abrir-mirar-editar: escribir el TMDL exige Desktop cerrado, y no habia forma de cerrarlo desde aqui -tocaba matar el proceso a mano en PowerShell-.

Cierra SOLO la instancia con ese archivo abierto, verificando la identidad del proceso (nombre + hora de arranque, nunca el PID a secas). Al final re-comprueba que el archivo ya no este abierto y lo dice en verified_closed.

DESTRUCTIVA: los cambios SIN GUARDAR de esa ventana se pierden -y en un .pbip eso incluye los datos refrescados de la sesion-. Por eso exige confirm=true. Si el archivo no estaba abierto, no hace nada y lo dice (was_open: false).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
confirmNo
request_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond the destructiveHint annotation, it explains that only the instance with that file is closed, verified by process name + start time (never PID alone), and re-checks afterward via `verified_closed`. It warns that unsaved changes are lost, including refreshed session data in .pbip, and requires `confirm=true`.

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 moderately sized but well-structured, with each section serving a purpose: action, rationale, verification behavior, and destructive warning. It is not overly verbose for a destructive tool, though it could be tightened.

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?

For a destructive close operation, it covers the key context: when to use, what happens, consequences, and return indicators. Minor gaps exist around error handling (e.g., insufficient permissions or multiple instances with the same file), but the overall picture is complete for an agent to invoke it 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?

With 0% schema description coverage, the description compensates partially: it explains `confirm` is required for the destructive action and mentions return fields (`verified_closed`, `was_open`). However, it does not explicitly describe the `path` parameter format or the `request_id` role, leaving some ambiguity.

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 a specific verb and resource: 'Cierra la instancia de Power BI Desktop que sirve ESE proyecto' (closes the Power BI Desktop instance serving that project). It clearly distinguishes this from sibling tools like pbi_open_in_desktop by positioning it as the missing exit in the edit-open-look-edit cycle.

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: writing TMDL requires Desktop closed, and this tool is the missing way to close it from here, contrasting with manually killing the process in PowerShell. It also notes it does nothing if the file isn't open, providing a no-op safety condition.

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