Skip to main content
Glama

report_add_visual

Adds validated visuals such as charts, cards, tables, matrices, slicers, or textboxes to a Power BI PBIR report page, with schema-safe visual.json and queryState projections.

Instructions

Add a visual to a PBIR report page (charts, cards, tables, matrices, slicers, textboxes) with validated Microsoft PBIR visual.json schema and queryState projections.

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>",
      "pageId": "<pageId>",
      "visualType": "<visualType>",
      "position": "<position>"
    },
    "name": "report_add_visual"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoRow fields (for pivotTable / matrix)
textNoText content (when visualType is 'textbox')
titleNoVisual title shown in the header
pageIdYesTarget page ID
seriesNoOptional Legend / Series split field
sortByNoOptional default sort definition
valuesNoMeasure / Value / Y-axis / Slicer / Table columns
columnsNoColumn fields (for pivotTable / matrix)
categoryNoCategory / X-axis / Legend slice fields (for bar, column, line, area, pie, donut)
positionYesCanvas position and dimensions
fontSizePtNoFont size in points (when visualType is 'textbox')
visualTypeYesPower BI visual type
projectPathYesPath to the .pbip file or project root folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one real trait beyond the name: the payload is validated against the Microsoft PBIR visual.json schema and projected into queryState, which tells the agent malformed bindings will be rejected. It says nothing about persistence to the project files, error/rollback behavior, or what happens if the pageId is unknown.

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?

A single front-loaded sentence with the verb and resource first, then the supported types. Nothing is redundant, though 'queryState projections' is specialist jargon that may not help an unfamiliar agent and could be traded for more actionable detail.

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

Completeness3/5

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

For a 13-parameter mutation tool with nested objects, no annotations, and no output schema, the description is thin on operational context: it does not say whether the call writes files to disk, whether it returns the created visual's identifier, or what preconditions (existing page, valid PBIP project) must hold. The rich schema compensates for parameter-level gaps but not for behavioral ones.

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?

Schema description coverage is 100% and every one of the 13 parameters carries an inline description, including the field-binding shape, coordinate system, and per-type applicability notes (textbox text/fontSizePt, rows/columns for matrix). The description adds no meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ('Add a visual to a PBIR report page') and enumerates the supported artifact kinds (charts, cards, tables, matrices, slicers, textboxes), so an agent can tell it apart from page- and theme-level siblings. The distinction from 'report_update_visual' is only implied by the word 'Add', not stated.

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

Usage Guidelines3/5

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

Usage is implied: this is the creation path for visuals, contrasted implicitly with report_update_visual and report_delete_visual in the sibling set. There is no explicit when-to-use/when-not-to-use statement, no prerequisite that the target page must already exist, and no guidance on choosing between this and updating an existing visual.

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