Skip to main content
Glama

delete_shared_expression

Delete a shared Power Query expression only when no other document references it, preventing broken name references in mashups.

Instructions

Delete a shared Power Query expression (parameter / staging query). Refuses with the referencer list while any other M document (shared expression or table partition) still references it, so a dangling #"name" can never break the mashup silently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesthe shared expression to delete
sessionIdYes
Behavior5/5

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

With no annotations provided, the description carries the full burden for behavioral disclosure. It goes beyond a simple delete by explaining the refusal mechanism with referencer list, the condition (other M documents referencing it), and the rationale (preventing dangling references that break the mashup silently). This is rich, context-aware transparency.

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 purpose, and every word earns its place. It states the action first, then the critical safety behavior without unnecessary fluff.

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 destructive operation with no output schema and no annotations, the description explains the main purpose and the critical edge case (refusal on references). It does not specify the success return or permission requirements, but these are less critical given the clear safety behavior. It is largely complete for an agent to use the tool effectively.

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?

Schema description coverage is 50%: only 'name' has a description, while 'sessionId' is undocumented. The tool description adds context about what constitutes a shared expression (parameter / staging query), slightly enriching the 'name' parameter. However, it does not explain 'sessionId' or provide additional parameter guidance, so it only partially compensates for the schema gap.

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 (Delete) and the specific resource (shared Power Query expression), with a parenthetical clarifying it covers parameters and staging queries. This distinguishes it from sibling tools like delete_measure or rename_shared_expression.

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 the tool (when you want to delete a shared expression) and provides a key prerequisite: the tool refuses if references exist, so users must handle references first. However, it does not explicitly name alternatives or state when not to use this tool.

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