Skip to main content
Glama

add_svg_sparkline

Create in-cell SVG sparklines for Power BI measures, with line, area, or gradient-area styles, optional last-point marker, and zero baseline intercept.

Instructions

Author an SVG SPARKLINE measure (DataCategory=ImageUrl): a min-max scaled line/area over a category column, rendered in-cell. kind=line|area|gradient-area. showLastPoint adds a terminal marker; intercept draws a zero baseline. categoryColumn = Table[Column].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoline | area | gradient-arealine
nameYes
tableYes
widthNosvg width in px
heightNosvg height in px
interceptNodraw a dashed zero baseline
lineColorNoline colour hex#2E86AB
sessionIdYes
valueMeasureYesthe value measure plotted per category
showLastPointNodraw a marker on the final point
categoryColumnYesthe category column, e.g. Calendar[Month]
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses min-max scaling, in-cell rendering, and the effects of showLastPoint and intercept. However, it does not mention side effects like overwriting existing measures, required data types, or return behavior.

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?

Two sentences efficiently front-load the purpose and then summarize key option behaviors. No filler; every clause contributes to understanding the tool.

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?

Covers core functionality and key parameter semantics, but with 11 parameters and no output schema, it omits context like naming behavior, size implications, and whether existing measures are overwritten. Sufficient for basic usage but not exhaustive.

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?

The description adds meaning beyond the schema by explaining min-max scaling for the value measure, the Table[Column] format for categoryColumn, and the visual effects of kind, showLastPoint, and intercept. Schema coverage is 73%, and the description clarifies key parameters without redundancy.

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?

Clearly states the tool authors an SVG sparkline measure with DataCategory=ImageUrl, using min-max scaled line/area over a category column. This specific verb+resource+description distinguishes it from siblings like add_sparkline or add_svg_chip.

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 context by explaining the kind options and inline rendering, but it does not explicitly discuss when to use this tool versus alternatives or provide exclusion criteria. Guidance is implied rather than directly stated.

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