Skip to main content
Glama

add_visual

Add a visual to a Power BI report with explicit role bindings. Bind data fields to roles like Category, Y, Rows, Columns, or Values for charts, pivot tables, cards, slicers, and tableEx.

Instructions

Add any visual type with explicit role bindings. bindings = JSON array of {role,table,field,kind}. Roles depend on visualType (e.g. Category/Y for charts, Rows/Columns/Values for pivotTable, Values for card/slicer/tableEx).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
titleNo
widthNo
heightNo
bindingsYesJSON array of {role,table,field,kind}
pageNameYes
visualTypeYesvisual type id, e.g. card, tableEx, pivotTable, slicer, clusteredColumnChart, lineChart
reportSessionIdYes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses important behavior about bindings format and dependency on visualType. However, it does not mention side effects (e.g., requires active report session), error conditions, or return value. It adds some meaningful context but omits other behavioral aspects.

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?

The description is two sentences, front-loaded with the verb and purpose, followed by a precise clarification of the bindings parameter. Every sentence earns its place with no filler.

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?

Given the tool's generic nature and 9 parameters with no output schema or annotations, the description covers the core binding complexity but leaves gaps around positional parameters, session/page context, and return/error behavior. It is adequate for the main use case but not fully comprehensive.

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 low (22%), so the description compensates by explaining the most complex parameter (bindings) with its JSON structure and providing examples of role names per visualType. It also repeats and enhances visualType examples. However, it does not describe positional parameters (x, y, width, height, title), though those are fairly self-explanatory.

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 verb ('Add') and resource ('any visual type') and adds the key qualifier 'with explicit role bindings'. This distinguishes it from specific sibling tools like add_chart or add_table_visual by emphasizing its generic nature and role-binding mechanism.

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?

The description implies usage for any visual type and highlights role bindings, but it does not explicitly mention when to choose this tool over dedicated visual-specific tools (e.g., add_matrix, add_slicer) or provide exclusions. Usage context is implied rather than clearly contrasted with alternatives.

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