Skip to main content
Glama

pbi_persist_now

Save the open Power BI Desktop file (PBIX) by sending Ctrl+S. Requires user confirmation and UI automation permission.

Instructions

Trigger Power BI Desktop to save the open PBIX (Ctrl+S in the UI).

The Tabular engine has no programmatic save — every TOM mutation lives in memory until the user presses Ctrl+S. This tool drives that key chord through Win32 keyboard injection on the connected Desktop instance's main window.

Hard gates (both required):

  • The server process must have PBI_MCP_ALLOW_UI_AUTOMATION=1 set in its environment before launch.

  • The caller must pass confirm=True per call.

Either gate failing returns a structured error without acting. The automation only sends Ctrl+S; no other key sequences are emitted.

Parameters

pbix_path: Optional. When provided, the call polls the file's modification timestamp for up to timeout_seconds after sending Ctrl+S, and reports the observed delta in the response. Without it the call returns immediately after key injection. confirm: Must be True. Refusing-by-default avoids accidental focus steals from other tools. timeout_seconds: Bound on how long to wait for pbix_path mtime to change. Clamped to [1, 60].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
pbix_pathNo
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Disclosures Win32 keyboard injection, only Ctrl+S, confirm requirement, env var prerequisite, polling with timeout, and immediate return without pbix_path. No annotations, so description carries full burden and does it thoroughly.

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?

Well-structured with sections, front-loaded purpose, efficient sentences, no fluff. Every sentence adds value.

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?

Covers purpose, prerequisites, parameter details, error handling, and behavior. Output schema exists, so return values not needed. Complete for complexity.

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 coverage 0%, but description explains each parameter: pbix_path (optional polling), confirm (must be True), timeout_seconds (clamped). Adds essential meaning beyond schema.

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?

Clearly states the tool triggers Power BI Desktop save (Ctrl+S). Distinct from sibling tools; unique persistence action.

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?

Explicitly describes when to use (after TOM mutations) and provides hard gates (env var, confirm). Does not explicitly mention alternatives, but context implies usage.

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/imnotStealthy/powerbi-mcp-local'

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