Skip to main content
Glama

dynamic_unpivot_other_columns

Unpivot all columns except those in the keep list, automatically including new attribute columns. Appends a Power Query M step to reshape the table.

Instructions

Dynamic Unpivot Other Columns: unpivot every column NOT in keepColumns, deriving the unpivot set from Table.ColumnNames at evaluation time so NEW attribute columns added later auto-unpivot. keepColumns is comma-separated. Appends one step to the table's M query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
sessionIdYes
keepColumnsYesthe columns to keep (not unpivot), comma-separated
partitionNameNopartition name (optional; defaults to the first partition)
Behavior4/5

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

With no annotations present, the description carries the full burden. It discloses a key behavioral trait: the unpivot set is derived at evaluation time, causing new columns to auto-unpivot. It also states that it appends one step to the table's M query, providing side-effect information. It does not mention reversibility or error conditions, but the disclosed behaviors are valuable.

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 two sentences, front-loaded with the core purpose, and every sentence adds meaningful content. No fluff or redundancy.

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?

For a transformation tool with no output schema, the description covers the essential aspects: what it does, the dynamic behavior, the meaning of keepColumns, and the side effect on the M query. It misses potential details about partitionName behavior or error cases, but these are minor given the overall clarity.

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

Parameters3/5

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

The schema already describes keepColumns and partitionName, and the description adds little beyond that. It reiterates that keepColumns is comma-separated and explains its role, but this is already in the schema. With 50% schema coverage, the description could compensate, but it does not add new parameter-level details for the other 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 clearly states that the tool unpivots every column not in keepColumns, which is a specific verb and resource. It also distinguishes from sibling tools by highlighting the dynamic derivation from Table.ColumnNames at evaluation time, setting it apart from static unpivot alternatives.

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: when new attribute columns may be added later and should auto-unpivot. However, it does not explicitly mention alternatives or provide when-not-to-use guidance. This gives clear context without exclusions, so a 4 is appropriate.

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