Skip to main content
Glama

add_index_column

Add a sequential index column to your Power Query table by appending Table.AddIndexColumn to the M query. Specify column name, start value, and step increment directly.

Instructions

Power Query Add Index Column: add a sequential index. Appends Table.AddIndexColumn to the table's M query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNothe index column name (default Index)
stepNoincrement between rows (default 1)
startNostarting value (default 0)
tableYes
sessionIdYes
partitionNameNopartition name (optional; defaults to the first partition)
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It only states the mechanical effect (appends to the M query) but does not disclose side effects, permissions, reversibility, or behavior with existing index columns. This is insufficient for a mutation tool.

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 a single, front-loaded sentence with no wasted words. It efficiently conveys the tool's purpose and implementation in two short clauses.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite being a relatively simple transformation tool, it has 6 parameters, no output schema, and no annotations. The description covers the core action but omits prerequisites, return values, and edge cases, making it incomplete for reliable autonomous invocation.

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

Parameters2/5

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

The schema already provides descriptions for 4 of 6 parameters, but the description adds no parameter-level meaning. It does not compensate for the undocumented table and sessionId parameters, and the moderate schema coverage (67%) is not high enough to rely on schema alone.

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 action ('add a sequential index') and the specific resource ('Power Query Add Index Column'), and it distinguishes the tool by noting it appends Table.AddIndexColumn to the table's M query. This is a specific verb+resource combination that separates it from other add_* sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when an index column is needed, but it provides no explicit guidance on when to use this tool over alternatives, nor does it mention any exclusions. There is clear context but no direct comparison to similar add_* operations.

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