Skip to main content
Glama

pbi_set_series_color

Set the fill colour for a single series of a chart visual by specifying the series index or name.

Instructions

Set the fill colour for a single series of a chart visual.

Power BI stores per-series overrides inside singleVisual.objects.dataPoint as additional list entries with an id selector pinned to the target series' measure or column. The bare defaultColor property only affects series that do not have an explicit override — using it on a multi-series chart paints every series the same colour.

Specify the target series by series_index (0-based across the visual's projections, in role order) or series_name (matches the queryRef or the underlying measure / column Property name). Optional role narrows the lookup to a specific projection role (e.g. "Y", "Values").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
roleNo
colorYes
visual_idYes
series_nameNo
series_indexNo
extract_folderYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
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 burden. It discloses the internal storage mechanism and clarifies that defaultColor only applies to series without overrides. However, it does not mention permissions, side effects, or error conditions.

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 moderately concise with three full sentences, front-loaded with the primary purpose. It adds necessary context but could be slightly shorter without losing clarity.

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?

The description explains the key distinction between per-series overrides and defaultColor, and how to target series. It does not mention output or required prerequisites, but the presence of an output schema may compensate for return value details.

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

Parameters3/5

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

The input schema has 7 parameters with 0% description coverage. The description adds meaning for series_index, series_name, and role, explaining how to target a series. It does not explain page, visual_id, color, or extract_folder beyond their names.

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 sets the fill colour for a single series of a chart visual, which is a specific verb and resource. It distinguishes from surrounding sibling tools like pbi_set_visual_format_property by focusing on per-series colour overrides.

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 explains when to use this tool by contrasting with the defaultColor property, which affects all series uniformly. It does not explicitly list alternatives but provides clear context for appropriate usage.

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/imnotStealthy/powerbi-mcp-local'

If you have feedback or need assistance with the MCP directory API, please join our Discord server