Skip to main content
Glama

fix_slicer_single_select

Set a field-parameter slicer to single-select to fix a flat-line chart where all options render at once; auto-picks the first option. Requires .pbix path and page name; optional chart or default_value

Instructions

ONE-CALL flat-line fix for a field-parameter-axis chart. Give ONLY the .pbix path and the page name (both are in a request like 'fix the flat line in Category vs Brand Share of ') - no slicer name, no boolean, no multi-step. Opens the CLOSED .pbix, finds the slicer bound to the page's FIELD PARAMETER (auto-detected: a slicer whose bound field is a field parameter - table==column, or the single-column-table field plotted on a chart axis), makes it SINGLE-SELECT (writes the ground-truth objects.selection[0].properties.strictSingleSelect=true), then writes the .pbix back (DataModel byte-preserved). THAT is the whole fix: a field-parameter-bound chart flat-lines because every option renders at once; single-select forces one option AND auto-picks the field parameter's first option (e.g. MonthYear) on open. If several field-parameter slicers exist, pass the optional 'chart' (its title/name/bound field) to disambiguate; if you already know a specific value, pass 'default_value' to pin the opening option (otherwise single-select auto-picks the first). Returns {ok, page, slicer, fieldParameter, strictSingleSelect, default_applied, before, after}. The .pbix must NOT be open in Power BI Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYesthe page: its displayName or name - a partial/loose match is accepted
pbixYesabsolute path to the .pbix (must be CLOSED in Power BI Desktop)
chartNooptional: a chart on the page (title/name/bound field) to disambiguate WHICH field-parameter slicer to fix
default_valueNooptional value to pin as the opening option; omit to let single-select auto-pick the field parameter's first option
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral details: it opens the .pbix, modifies strictSingleSelect, writes back while preserving the DataModel, and requires the file to be closed. It also explains the auto-detection logic and what the return object contains, leaving no significant behavioral gaps.

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 long but well-organized, front-loading the core fix and then explaining optional parameters and prerequisites. Some redundancy (e.g., repeating the flat-line cause and 'THAT is the whole fix') prevents a perfect score, but every sentence generally adds value.

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

Completeness5/5

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

Despite lacking an output schema, the description explicitly lists the return fields and covers all relevant aspects: prerequisites (file closed), auto-detection rules, optional disambiguation, and the exact property written. It is complete for a tool of this complexity.

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

Parameters4/5

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

Although schema coverage is 100%, the description adds practical context beyond the schema: it gives an example of how the pbix and page appear in a request, clarifies that no slicer name or boolean is needed, and explains when chart and default_value are necessary. This enriches the schema's brief parameter descriptions.

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 it is a one-call fix for a field-parameter-axis chart, and details the exact workflow: open a closed .pbix, find the field-parameter slicer, set strictSingleSelect=true, and write back. This distinguishes it from related slicer tools like set_slicer_selection by targeting the specific flat-line symptom.

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?

It gives explicit usage instructions: 'Give ONLY the .pbix path and the page name' and explains when to use it (field-parameter-bound chart flat-lines). It also describes optional parameters for disambiguation. However, it does not explicitly name alternative tools or provide exclusions, so it stops short of full comparative guidance.

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