Skip to main content
Glama

convert_legacy_to_pbir

Convert legacy .pbix or Layout JSON reports into a structured PBIR definition tree with GUID-named pages and visuals. Best-effort conversion; validate in Power BI Desktop.

Instructions

BEST-EFFORT explode a legacy Report/Layout (.pbix or a raw Layout JSON file) into a PBIR definition tree written to a target folder (default .Report next to the source): pages -> page.json, visualContainers -> visual.json, generating GUID names. Returns a pbirSessionId over the new tree. FLAG: best-effort - open in Power BI Desktop to validate/upgrade. pbir->legacy is not implemented.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
legacyPathYesabsolute path to the legacy .pbix (or a raw Report/Layout JSON file)
targetFolderNotarget folder for the PBIR tree (optional; defaults to <name>.Report beside the source)
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 of behavioral disclosure. It does well by explaining the 'BEST-EFFORT' nature, the file mapping (pages -> page.json, visualContainers -> visual.json), GUID name generation, default output folder, and the returned pbirSessionId. It lacks details on error handling or side effects, but the core behavioral traits are covered.

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 dense yet efficient, front-loading the key action and resource. Every sentence adds value: the first covers inputs/outputs/defaults, the second explains the return value, and the final two provide critical caution and reverse-direction status. No waste.

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?

Given the complexity of a conversion tool and the absence of annotations and output schema, the description is remarkably complete. It specifies input formats, output tree structure, default location, return value, and best-effort flag with validation advice. It could mention overwrite behavior or read-only nature, but the essentials are present.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents both parameters. The description adds meaning by clarifying that legacyPath can be a .pbix or raw Layout JSON file and that targetFolder defaults to '<name>.Report' next to the source. This goes beyond the schema by explaining the file type variations and default behavior.

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 'BEST-EFFORT explode a legacy Report/Layout (.pbix or a raw Layout JSON file) into a PBIR definition tree', using a specific verb ('explode') and resource, clearly distinguishing this from sibling tools that generate PBIP or work in PBIR. It also specifies the output structure and return value, leaving no ambiguity about the tool's purpose.

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 for when to use the tool (converting legacy .pbix/Layout JSON to PBIR) and when not to use it ('pbir->legacy is not implemented'). It also flags that the output is best-effort and advises opening in Power BI Desktop for validation/upgrade. It does not explicitly name alternative 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/cyphonica/powerbi-pbix-mcp'

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