Skip to main content
Glama

set_icon_rules

Apply discrete rule-based icons to a measure column in a Power BI table or matrix. Define min-max color bands, optional glyphs, and icon layout to visually encode values at a glance.

Instructions

Apply DISCRETE rule-based ICONS to a measure column in a table/matrix: each value in [min, max) maps to an icon. rules = JSON array of {min, max, color}. glyphs = optional comma-separated icon glyph names (one per band, e.g. ArrowDown,ArrowSideways,ArrowUp) - when given, each band uses that glyph instead of being colour-keyed. iconSet picks the glyph family (e.g. ThreeArrowsColored, ThreeFlags, ThreeTrafficLights1). layout = left|right|icon-only (where the icon sits relative to the value). Verify in Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYespage name or displayName
rulesYesJSON array of {min, max, color} bands
glyphsNooptional comma-separated glyph names, one per band
layoutNoleft | right | icon-only
visualYestable/matrix visual name
iconSetNooptional icon-set family, e.g. ThreeArrowsColored
measureYesmeasure that drives the icons
measureTableYestable that owns the measure
reportSessionIdYes
Behavior4/5

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

Without annotations, the description carries the full burden. It explains the interval-based mapping ('each value in [min, max) maps to an icon'), the behavior of glyphs ('each band uses that glyph instead of being colour-keyed'), and the layout option. It also notes 'Verify in Desktop', indicating a post-change verification step. It does not mention whether existing rules are overwritten, but it provides meaningful behavioral detail.

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 front-loaded with a clear purpose sentence, followed by concise explanations of each parameter. It's a single paragraph that is relatively dense but every sentence contributes; no unnecessary fluff. Length is justified by the tool's complexity.

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?

With 9 parameters and no output schema or annotations, the description covers all key aspects: the rule structure, optional glyphs, icon family, and layout. It mentions the target (table/matrix measure column) and adds the 'Verify in Desktop' note. It lacks information about whether the operation replaces or merges existing rules, and doesn't specify return values, but overall it is comprehensive for a formatting tool.

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?

The schema already covers 89% of parameters, but the description enhances understanding by explaining rules format (JSON array of {min, max, color} with interval semantics), providing example glyphs (ArrowDown,ArrowSideways,ArrowUp), and clarifying iconSet and layout values. This adds significant value beyond the schema's terse 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 the tool's action: 'Apply DISCRETE rule-based ICONS to a measure column in a table/matrix', specifying the resource (measure column) and the distinct approach (discrete rules with [min,max) intervals). It differentiates from siblings like set_color_scale or set_data_bars by focusing on icons.

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 gives clear context ('to a measure column in a table/matrix') and explains the functionality, but it does not explicitly address when to use this tool versus alternatives like set_font_color_rules or set_data_bars. No 'when not to use' guidance or alternative tool references are provided.

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