Skip to main content
Glama

change_visual_type

Change a visual's type while preserving data bindings, position, and formatting. Automatically modernizes deprecated types and remaps data roles.

Instructions

Change a visual's TYPE preserving its data bindings, position and applicable formatting. A deprecated target is modernised automatically (card -> cardVisual, table -> tableEx, matrix -> pivotTable). Projection roles are remapped through the curated data-role registry (list_visual_data_roles): same-named roles carry straight over, the rest fall to the first compatible role by kind, and per-role caps drop overflow (reported, never silent). Data-formatting cards the new type does not declare are dropped and reported; chrome (title/background/border) always survives. Sort is cleared - re-apply with set_visual_sort.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYespage name or displayName
visualYesvisual name
newTypeYesthe new visualType, e.g. lineChart | clusteredBarChart | tableEx (or a deprecated alias: card/table/matrix)
reportSessionIdYes
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It thoroughly explains side effects: deprecated aliases are modernised, role remapping rules are specified (same-named roles carry over, others fall to first compatible role, overflow is reported), data-formatting cards not declared are dropped and reported, chrome always survives, and sort is cleared. This is exceptional transparency for a complex mutation tool.

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 multi-sentence but every sentence contributes meaningful detail for a complex operation. It is front-loaded with the core purpose and then layers important details. There is no fluff or redundancy, and the length is justified by the complexity of the tool.

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?

The tool is complex with many side effects, and the description covers them comprehensively: what is preserved, what is dropped and reported, what is cleared, and how to re-apply sort. Since no output schema is expected, return values are not needed. The description is complete for an agent to understand the full scope of the operation.

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 schema already provides good descriptions for newType including deprecated aliases, so the description does not need to add much there. It adds behavioral context around how parameters are interpreted (e.g., type modernisation, role remapping), but does not significantly elaborate individual parameter meanings beyond what the schema provides. With 75% schema description coverage, the baseline of 3 is appropriate.

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 opens with a specific verb 'Change' and resource 'visual's TYPE', clearly stating the core function. It distinguishes itself from siblings like set_visual_format and set_visual_property by explicitly mentioning preservation of data bindings, position, and applicable formatting, and by detailing deprecated mapping behavior. This makes the purpose unambiguous and well-differentiated.

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?

The description provides clear context that this tool is for retyping visuals while preserving certain attributes, and it even directs users to re-apply sort with set_visual_sort after use. It also references list_visual_data_roles for role remapping, giving auxiliary guidance. It does not explicitly name alternatives or state when-not to use it, but the context is sufficient to infer proper usage.

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