Skip to main content
Glama

apply_theme_and_accessibility_rules

Apply a colorblind-safe theme, auto-generate missing alt text for visuals, and re-audit WCAG compliance to make Power BI reports accessible.

Instructions

Apply a colorblind-safe theme, backfill visual alt text, and re-audit WCAG.

Use this tool when the user asks to:

  • Make a report accessible and WCAG 2.1 compliant.

  • Apply a colorblind-safe palette (e.g. Okabe-Ito, ColorBrewer).

  • Automatically generate informative alt text for visuals lacking descriptions.

Args: pbip_path: Path to the .pbip directory. palette: Colorblind-safe palette name ("okabe_ito", "colorbrewer"). auto_backfill_alt_text: Whether to generate missing alt text on visuals. alt_text_template: Format template for generated alt text.

Returns: Dict with updated WCAG score, modified visual count, and theme update details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paletteNookabe_ito
pbip_pathYes
alt_text_templateNo{visual_type} visualizing measure {first_measure}
auto_backfill_alt_textNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that visuals are modified (a 'modified visual count' is returned) and that a WCAG re-audit occurs, which signals mutation. However, it says nothing about permissions required, whether changes to the .pbip directory are reversible, idempotency, or rate/scope limits.

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?

Front-loaded with the core action, then clearly sectioned into usage triggers, args, and returns. Slightly padded by the repeated 'Use this tool when the user asks to' phrasing, but every line carries usable information.

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 multi-action mutation tool, the description covers purpose, triggers, all four parameters, and (redundantly, since an output schema exists) return shape. The remaining gap is behavioral: side effects on the .pbip directory and whether the operation is safe to re-run are not addressed, which matters more here because no annotations are supplied.

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?

Schema description coverage is 0%, so the description must compensate, and it largely does: it documents all four parameters (pbip_path, palette with example values, auto_backfill_alt_text, alt_text_template). It gives the meaning and intent of each, though it omits the exact enum constraint for palette and the default values that the schema supplies.

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 names three concrete actions (apply a colorblind-safe theme, backfill alt text, re-audit WCAG) on a specific artifact type, so the agent knows exactly what it does. It is clear but never explicitly differentiates itself from sibling audit tools like audit_report_ux_and_storytelling or audit_model_and_report, which is what a 5 would require.

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 'Use this tool when the user asks to:' block gives three explicit trigger scenarios (WCAG compliance, colorblind-safe palette, alt-text generation), which is strong positive guidance. It stops short of naming when-not to use it or pointing to an alternative sibling, so it does not reach a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.