Skip to main content
Glama

save_template_model

Rewrites a closed .pbit template's ZIP with current DataModelSchema, preserving all other parts. Re-packs in place with .bak backup or saves an edited copy to a chosen path.

Instructions

Rewrite a closed .pbit template's ZIP with the current DataModelSchema, preserving every other part (Report/Layout, [Content_Types].xml, SecurityBindings, Version, etc.) byte-for-byte - no Power BI Desktop. With no outPath it re-packs in place (the original is copied to a .bak first); with an outPath it writes an edited copy there and leaves the source untouched. The edit tools already persist on each call, so this is the explicit save-as (or an integrity re-pack).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outPathNooptional destination .pbit for a save-as copy (omit to re-pack in place)
pbitPathYespath to the closed .pbit template
Behavior5/5

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

With no annotations, the description fully discloses critical behaviors: it preserves all non-data parts byte-for-byte, creates a .bak backup when re-packing in place, and leaves the source untouched when outPath is provided. It also states that no Power BI Desktop is needed, covering the mutation and safety profile comprehensively.

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 three sentences, front-loaded with the core action, followed by precise behavioral details. Every sentence adds value, and there is no redundant or filler content.

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?

The description is complete for a save tool with no output schema: it covers purpose, parameter effects, safety, and relationship to edit tools. It does not mention return value or error handling, but these are minor gaps given the strong coverage of the essential context.

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?

The schema already covers both parameters with descriptions, but the description adds meaningful detail such as the .bak backup behavior for outPath omission and the explicit statement that outPath writes a copy while leaving the source untouched. This enriches the schema-provided 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 clearly states the tool's function: rewriting a closed .pbit template's ZIP with the current DataModelSchema while preserving all other parts byte-for-byte. It differentiates from siblings by specifying the closed .pbit format, no Power BI Desktop requirement, and the distinction between in-place save and save-as.

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 usage context by noting that edit tools already persist on each call, making this the explicit save-as or integrity re-pack tool. It clearly explains behavior with and without outPath, but does not explicitly name alternative sibling tools, though the purpose is clear.

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