Skip to main content
Glama

set_table_detail_rows

Define the default detail rows for a table in Power BI via a DAX expression, controlling the rows returned on drill-through when per-measure detail rows are not set.

Instructions

Set a TABLE's default detail rows (Table.DefaultDetailRowsDefinition) - the DAX table returned when a user drills into a value of this table that has no per-measure detail rows. Distinct from the measure-level set_detail_rows. daxTableExpression is a DAX table expression.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
sessionIdYes
daxTableExpressionYesDAX table expression returning the detail rows
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It does explain the semantic effect: it sets the default detail rows definition used when drilling into a table value with no per-measure rows. It also clarifies that daxTableExpression is a DAX table expression. However, it doesn't mention side effects like overwriting existing definitions, permissions, or error conditions, which would be helpful 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is relatively concise at two sentences, front-loaded with the primary action. The inclusion of the distinct sibling and the explanatory clause about drilling is efficient. The final clause 'daxTableExpression is a DAX table expression' is slightly redundant with the schema, but overall the structure is acceptable.

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 simple setter tool with no output schema, the description is fairly complete. It explains the purpose, the specific scenario in which the default applies, and the key parameter expression. It doesn't explain return values (not needed) or prerequisites like session validity, but such details are less critical for this type of operation.

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?

Schema description coverage is only 33% (only daxTableExpression has a description). The description mainly repeats that 'daxTableExpression is a DAX table expression' which adds no value beyond the schema. It does not explain 'sessionId' or 'table' parameters, leaving the agent to infer their meaning from names alone. This is a gap given the low schema coverage.

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 tool's action: 'Set a TABLE's default detail rows (Table.DefaultDetailRowsDefinition)'. It specifies the resource (TABLE) and the specific property being set. It also distinguishes itself from the sibling tool set_detail_rows by calling out 'Distinct from the measure-level set_detail_rows', making its scope unambiguous.

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 provides clear context for when to use this tool: 'the DAX table returned when a user drills into a value of this table that has no per-measure detail rows'. It also names the alternative set_detail_rows for measure-level detail rows, which gives an explicit alternative. However, it doesn't fully state 'when not to use' in absolute terms, only implying it via the distinction.

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