Skip to main content
Glama

set_theme_structural_colors

Set structural colors in a Power BI report theme using a JSON object of hex values for elements like background and tableAccent. Only supplied colors are updated; run generate_theme first.

Instructions

Set the report theme's STRUCTURAL colours. colors = JSON object with any of: firstLevelElements, secondLevelElements, thirdLevelElements, fourthLevelElements, background, secondaryBackground, tableAccent (foreground is an alias of firstLevelElements). Each value is a hex colour; only supplied keys change. Run generate_theme first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorsYesJSON object of structural key -> hex
reportSessionIdYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that only supplied keys change (partial update), foreground is an alias for firstLevelElements, and values are hex colors. It also requires generate_theme to run first, which is a valuable precondition. However, it does not cover permissions or error scenarios.

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 concise, consisting of three sentences that each add necessary information: purpose, parameter structure, and prerequisite. It is front-loaded and free of any filler or redundancy.

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 with two parameters and no output schema, the description is largely complete, covering the target, parameter details, and execution order. A minor gap is the lack of explicit explanation for reportSessionId, but the name and generate_theme reference make it sufficiently clear.

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 description significantly enriches the 'colors' parameter by listing all accepted keys, explaining the alias, and noting that only supplied keys change—none of which is in the schema's brief description. It does not explicitly explain reportSessionId, but its purpose is clear from the name and the generate_theme prerequisite.

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 sets the report theme's STRUCTURAL colors, using a specific verb and resource. It distinguishes itself from sibling tools like set_theme_data_colors and set_theme_sentiment_colors by explicitly focusing on structural colors.

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 provides a clear prerequisite ('Run generate_theme first') which indicates when this tool should be used. It does not explicitly mention alternatives, but the STRUCTURAL qualifier implicitly differentiates it from sibling theme color setters, giving clear context without exclusions.

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