Skip to main content
Glama

generate_palette

Compute a color palette for a Power BI theme, covering data colors, status indicators, and conditional formatting scale, using harmonic, monochrome, or gradient modes.

Instructions

Compute a palette and write it into the theme: dataColors[] + good/neutral/bad + CF min/center/max. mode=harmonic (hue-wheel off baseColor) | monochrome (lightness ramp of baseColor) | gradient (interpolate baseColor->... actually gradientFrom->gradientTo). For gradient pass gradientFrom + gradientTo; otherwise pass baseColor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNohow many data colours to emit
modeNoharmonic | monochrome | gradientharmonic
baseColorNobase colour hex (harmonic/monochrome)
gradientToNogradient end hex (gradient mode)
gradientFromNogradient start hex (gradient mode)
reportSessionIdYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It makes clear that this is a mutation tool ('write it into the theme') and details the specific theme areas it updates. It also discloses mode-specific color behavior and parameter dependencies, but does not mention persistence, overwrite semantics, or any required theme state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The description is compact and front-loaded with the primary action and target fields, but it contains informal/corrective language ('interpolate baseColor->... actually gradientFrom->gradientTo') and an ellipsis that add noise. The two sentences are reasonably concise but not polished enough for a 5.

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?

Given the lack of annotations and output schema, the description covers the core function, mode behavior, parameter selection rules, and the write side effect, which is quite complete for a tool with 6 parameters. It does not explain return values or theme prerequisites, but these are not critical given the tool's action-oriented purpose.

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 input schema covers 83% of parameters with descriptions, so the baseline is 3, but the description adds meaningful semantics beyond the schema: mode explanations (hue-wheel, lightness ramp, interpolation) and the rule for which parameters to pass in each mode. It does not add detail for reportSessionId, but this appears to be a common session identifier.

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 computes a palette and writes it into the theme, specifying the exact targets: dataColors[], good/neutral/bad, and CF min/center/max. This makes the tool's function and scope immediately apparent and distinguishes it from sibling tools like set_theme_data_colors or set_theme_cf_colors by emphasizing generation and writing to multiple theme areas.

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 explicit mode-specific usage: 'mode=harmonic | monochrome | gradient' and explains which parameters to pass per mode ('For gradient pass gradientFrom + gradientTo; otherwise pass baseColor'). However, it does not compare against alternative tools or state when not to use this tool, so it lacks explicit 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