Skip to main content
Glama

replace_values

Replace all occurrences of a text value in a column with a new value by adding a Power Query step using Table.ReplaceValue and Replacer.ReplaceText.

Instructions

Power Query Replace Values: replace every occurrence of a text value in a column. Appends Table.ReplaceValue (Replacer.ReplaceText) to the table's M query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYesthe value to find
tableYes
columnYesthe column to replace in
replaceYesthe replacement value
sessionIdYes
partitionNameNopartition name (optional; defaults to the first partition)
Behavior3/5

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

With no annotations, the description carries full transparency responsibility. It usefully discloses that it appends Table.ReplaceValue (Replacer.ReplaceText) to the M query and replaces every occurrence in a column. However, it does not mention potential side effects, such as modifications to existing M steps, case sensitivity, or error behavior.

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 concise sentences, front-loaded with the action and an informative detail about the M function. Every word earns its place, with no redundancy or fluff.

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?

For a 6-parameter tool with no output schema and no annotations, the description is too brief. It lacks usage guidance, parameter coverage, and essential behavioral details about prerequisites and side effects, leaving the agent under-informed for correct invocation.

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 documents find, replace, column, and partitionName, though sessionId and table lack descriptions. The description adds a 'text value' nuance for the find parameter and clarifies the column scope, but doesn't compensate for the undocumented sessionId or table parameters. It offers only marginal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool replaces every occurrence of a text value in a column, using a specific verb and resource. It also names the underlying M function, which adds precision. However, it doesn't explicitly distinguish itself from the similarly named sibling 'replace_value', so it isn't a perfect 5.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives like 'replace_value' or 'transform_column'. It implies a Power Query replacement context but does not mention exclusions, prerequisites, or preferred scenarios, leaving the agent to guess.

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