Skip to main content
Glama

set_template_column

Edit a column's properties in a closed .pbit template's DataModelSchema JSON. Set data type, format, hidden flag, sort-by, and summarization; omitted properties unchanged, backup created.

Instructions

Patch properties of an existing column in a closed .pbit template's model - data type, format string, hidden flag, sort-by column and default summarisation - editing the DataModelSchema JSON on disk with no Power BI Desktop. Any omitted property is left unchanged. Fails if the column does not exist. Written back in place (with a .bak guard).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYestable that owns the column
columnYescolumn name
dataTypeNodata type, e.g. int64, decimal, double, string, dateTime, boolean (omit to keep)
isHiddenNohide (true) or show (false) the column (omit to keep)
pbitPathYespath to the closed .pbit template
summarizeByNodefault summarisation, e.g. none, sum, count, average, min, max (omit to keep)
formatStringNoformat string, e.g. "#,0" or "0.0%" (omit to keep)
sortByColumnNosort-by column name (omit to keep)
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explicitly states that it writes back in place with a .bak guard, fails if the column does not exist, leaves omitted properties unchanged, and works without Power BI Desktop. This comprehensively covers the mutation, side effects, error behavior, and prerequisites.

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: the first states the core purpose and scope, the second explains omission behavior, and the third covers error handling and write-back safeguard. Every sentence contributes distinct value with no filler or repetition.

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?

For a mutation tool with no output schema and no annotations, this description covers the purpose, target resource, method of editing, prerequisites, side effects (in-place write with backup), error condition (column not found), and parameter behavior. It is sufficient for an agent to correctly select and invoke the tool.

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 input schema already provides descriptions for all 8 parameters (100% coverage). The description adds valuable cross-cutting semantics: 'Any omitted property is left unchanged', which clarifies the effect of null/default values across all optional parameters. It also enumerates the property types, reinforcing schema meaning without being redundant.

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 a specific action: 'Patch properties of an existing column in a closed .pbit template's model', listing the exact property types and the editing mechanism ('editing the DataModelSchema JSON on disk'). This distinguishes it from sibling set_* tools by emphasizing the offline template context and combined property patching.

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 implies when to use this tool: for closed .pbit templates requiring on-disk JSON editing without Power BI Desktop. It does not explicitly name alternatives (e.g., set_column_data_type, set_summarize_by) or state when not to use it, but the context is clear enough for an agent to infer the appropriate scenario.

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