Skip to main content
Glama
Power BI Report MCP Server

Power BI Report MCP Server

Add Visual

pbir_add_visual

Add one or more visuals to a Power BI page in a single batch, with inline formatting, colors, and data bindings to avoid separate formatting calls.

Instructions

Add visuals to a page via visuals: [...] batch. Inline containerFormat/visualFormat/dataColors per entry avoids extra pbir_format_visual calls. Stacked charts need a Series binding; 'KPI card' = card with one measure; scatter uses Category bucket. Use pbir_lookup_theme_property for valid category/property names.

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": {
      "visuals": "<visuals>"
    },
    "name": "pbir_add_visual"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNoAuto-resolved when only one page exists.
visualsYes
includeTypesNoReturn [{visualId,visualType}] instead of flat id list.
strictLayoutNotrue=strict, false=warn. Canvas 1280x720, 15px L/R / 6px bottom margins, 5px gaps. Omit for env default.
strictBindingsNotrue=strict, false=warn. Omit for env default.
strictCustomVisualNotrue=strict (default), false=warn. Blocks visualTypes that look like a custom visual (e.g. 'htmlContent<32-hex-guid>') but aren't registered in this report's publicCustomVisuals. Use pbir_list_custom_visuals to see what's installed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.6

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false, so the description carries most of the burden, and it does add real domain behavior: required binding shapes per chart type and the 'KPI card' -> card + one measure mapping. The strict* validation modes are documented in the schema rather than here, and the description never states that this mutates the report or whether added visuals can be rolled back, which keeps it out of 5 territory.

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?

Four tightly packed sentences with no filler, and the core action is front-loaded before the formatting and binding advice. The telegraphic phrasing ("'KPI card' = `card` with one measure") is efficient but slightly cryptic on first read, which costs it a point.

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 complex, deeply nested 6-parameter creation tool with no output schema, the description covers the essentials: batch entry shape, inline formatting strategy, chart-specific binding rules, and a pointer to the theme-property lookup tool. It leaves return-value behavior (flat id list vs includeTypes output) entirely to the schema, which is acceptable, but says nothing about failure modes when strict validation rejects a visual.

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 coverage is already 83%, so the baseline is 3, but the description adds meaning beyond the schema by framing the visuals array as a batch and explaining that containerFormat/visualFormat/dataColors can be supplied inline per entry to save a separate call. The chart-type-to-binding guidance (Series for stacked, Category for scatter) also gives semantic context for the bindings structure that the schema alone does not convey.

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?

States a specific verb and resource ('Add visuals to a page') plus the batch shape ('via visuals: [...]'), and explicitly distinguishes itself from the sibling pbir_format_visual by noting that inline containerFormat/visualFormat/dataColors avoids extra formatting calls. An agent can tell what this tool creates and why it exists alongside the format tool without opening either schema.

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?

Gives concrete routing advice: use pbir_lookup_theme_property for valid category/property names, and prefer inline formatting over a follow-up pbir_format_visual call. It also supplies chart-specific conditions (stacked charts need a Series binding, scatter uses the Category bucket). It stops short of saying when NOT to use this tool, e.g. that pbir_update_visual_bindings is the path for existing visuals.

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