Skip to main content
Glama

report_set_theme

Applies a custom Power BI JSON theme to a report and registers it in definition/report.json, enabling consistent report styling from a .pbip project.

Instructions

Apply a custom Power BI JSON theme to the report and register it in definition/report.json.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectPath": "<projectPath>",
      "themeName": "<themeName>",
      "theme": "<theme>"
    },
    "name": "report_set_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
themeYesPower BI theme JSON object (e.g. { dataColors: [...], background: '#FFFFFF', foreground: '#222222' })
themeNameYesTheme name (e.g. CorporateBlue)
projectPathYesPath to the .pbip file or project root folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose one important side effect — registration in definition/report.json — but says nothing about whether an existing theme is overwritten, whether themeName must be unique, or what happens when the project is already open in Power BI Desktop.

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?

A single tight sentence with the action and the persistence target front-loaded. Nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the definition is thin: the important behavioral facts (replacement semantics, naming constraints, failures) are absent. It covers the basic contract but leaves an agent guessing about the consequences of a call.

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

Parameters2/5

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

Schema coverage is 100% and each of the three required parameters carries its own description, so the schema does the heavy lifting. The description adds no meaning beyond it — for example, it never explains how themeName relates to the theme object or how it appears in report.json.

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?

Uses a specific verb ("Apply") plus resource ("custom Power BI JSON theme") and scopes it to "the report." A reader can distinguish it from sibling tools such as report_add_visual or model_upsert_* by subject matter, though the description never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description only states what the tool does, not when to reach for it or when not to. There is no mention of prerequisites (e.g. whether the project must be closed or whether an existing theme is replaced) and no routing guidance versus other report_* tools.

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