Skip to main content
Glama

add_svg_icon

Create an SVG threshold icon measure for Power BI: display a unicode glyph whose color reflects the value's band. Provide rules as a JSON array of min, max, glyph, and color.

Instructions

Author an SVG THRESHOLD ICON measure (DataCategory=ImageUrl): renders a unicode glyph in a colour chosen by which [min,max) band the value falls into. rules = JSON array of {min,max,glyph,color}, e.g. [{"min":-1e9,"max":0,"glyph":"▼","color":"#D7263D"},{"min":0,"max":1e9,"glyph":"▲","color":"#2E7D32"}].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
sizeNosvg size in px (square)
rulesYesJSON array of {min,max,glyph,color} rules
tableYes
sessionIdYes
valueMeasureYesthe value measure tested against the bands
Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses that it creates a measure with DataCategory=ImageUrl and explains the rules JSON structure, but it does not mention side effects such as whether it overwrites existing measures, requires specific permissions, or what the tool returns. The behavioral detail is moderately rich but incomplete for a 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is information-dense but reasonably sized. It front-loads the core purpose and includes a practical example of the rules format. The sentence is long but every part adds value, and the JSON example is particularly useful despite being verbose.

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 has 6 parameters, no output schema, and no annotations, the description covers the essential concept and rules format but omits prerequisites, error conditions, and return behavior. It is complete enough to understand the tool's core function but leaves gaps for a full invocation.

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 coverage is 50%, so the description must compensate for undocumented parameters. It adds significant meaning for 'rules' by providing a concrete JSON example and clarifies 'valueMeasure' as the measure tested against bands. However, it leaves 'name', 'table', and 'sessionId' without explanation, relying on the agent's general knowledge of similar tools.

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 a specific verb 'Author' plus the resource 'SVG THRESHOLD ICON measure' and explains the exact behavior: rendering a unicode glyph colored by value bands. This clearly distinguishes it from sibling SVG tools like add_svg_chip or add_svg_sparkline by emphasizing the threshold/banding logic.

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 when to use the tool (when you need a threshold icon measure) but does not explicitly state alternatives or exclusions. While the threshold banding concept is clear, there is no direct comparison to similar SVG tools or guidance on when not to use it.

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