Skip to main content
Glama

list_visual_data_roles

List all valid query data roles for any Power BI visual type, including accepted field types (Grouping/Measure), per-role field caps, and deprecated aliases. Hand-curated metadata ensures accurate coverage for mainstream visuals.

Instructions

The QUERY data roles a visual type takes (Category / Y / Series / Values / Rows / ...), each with what it accepts (Grouping | Measure | GroupingOrMeasure), its per-role field cap, and the deprecated -> modern type mapping (card -> cardVisual, table -> tableEx, matrix -> pivotTable). Role metadata is HAND-CURATED for the mainstream visual types because the bundled theme schema only describes formatting cards, not query roles - coverage is reported honestly (curated | none). The role half of the discovery surface; list_visual_properties is the formatting half.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
visualTypeYesa visualType key, e.g. clusteredColumnChart, tableEx, scatterChart (deprecated aliases accepted)
Behavior5/5

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

No annotations are present, so the description carries the burden. It discloses that role metadata is hand-curated and that coverage is reported honestly ('curated | none'), meaning unknown or unsupported visual types will not yield fabricated data. It also explains why the bundled theme schema cannot be used, adding important context about the tool's internal behavior.

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 information-dense and front-loaded, but slightly long. It packs multiple facts (role types, accepted values, field caps, mapping, curation caveat, sibling comparison) into two sentences. Every sentence contributes value, but the density makes it less scannable than ideal.

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

Completeness5/5

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

For a single-parameter discovery tool with no output schema, the description covers the returned content (roles, accepted types, field cap, mapping), the data source caveat, and the honest coverage behavior. It also positions the tool within the sibling landscape, making it contextually complete for an agent to select and invoke.

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 already documents visualType with examples and notes deprecated aliases (100% coverage). The description adds no syntax or format details beyond the schema, so it does not elevate the baseline score of 3.

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 uses the specific verb 'QUERY' and identifies the resource as 'data roles a visual type takes'. It enumerates concrete content (role types, accepted value kinds, field caps, deprecated mapping) and explicitly distinguishes itself from list_visual_properties as the formatting half, making its purpose unambiguous.

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

Usage Guidelines5/5

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

The description clearly scopes when to use this tool: it is 'the role half of the discovery surface' and points to list_visual_properties as the formatting alternative. It also sets expectations about coverage via the 'curated | none' honesty note, giving the agent a decision criterion.

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