Skip to main content
Glama

transform_column

Transform a column in a Power BI table by applying a scalar operation—such as lowercasing text, rounding numbers, or extracting date parts—and update the underlying Power Query M code.

Instructions

Power Query single-column transform: apply a scalar function to a column in place. Appends Table.TransformColumns to the table's M query. operation = (text) upper, lower, trim, clean, proper, length; (number) round, abs, floor, ceiling, sign, sqrt; (date) year, month, day, quarter, weekofyear, dayofweek, startofmonth, endofmonth, startofyear, endofyear, monthname, dayname.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
columnYesthe column to transform
operationYesthe operation (see description for the supported set)
sessionIdYes
partitionNameNopartition name (optional; defaults to the first partition)
Behavior4/5

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

The description clearly states that the transformation modifies the column in place and appends a Table.TransformColumns step, which is an important behavioral detail. It also enumerates supported operations, adding transparency without annotations, though it omits error handling or data-type-change effects.

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?

Two sentences, front-loaded with a clear purpose and followed by a structured operation list. No filler or redundant restatement of the tool's name.

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 captures the core behavior, supported operations, and the M-specific implementation, sufficient for selecting and invoking the tool. It lacks details on returned output or failure modes, but the simplicity of the operation narrows the gap.

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 column and partitionName meanings, but the description supplies the critical operation semantics: the full supported operation list, grouped by data type. This is essential because the schema's operation property defers to the description and covers 60% of parameters.

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 identifies a specific verb ('apply'), resource ('scalar function to a column'), and scope ('single-column', 'in place'), and mentions the underlying M operation. It distinguishes from sibling column tools by emphasizing single-column scalar transforms and listing the operation categories.

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?

It provides clear context for when to use—single-column Power Query transforms with a fixed set of scalar functions—and implicitly excludes multi-column operations. However, it does not explicitly name alternative tools or state when-not-to-use, so it stops short of full guidance.

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