Skip to main content
Glama

add_chart

Insert editable SVG charts into a Figma frame using labels and datasets, with support for bar, line, stacked, horizontal, and combo types.

Instructions

Add a chart as editable SVG vectors.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "frameId": "<frameId>",
      "type": "<type>",
      "labels": "<labels>",
      "datasets": "<datasets>"
    },
    "name": "add_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNo
typeYes
labelsYes
frameIdYes
datasetsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and delivers little. 'Editable SVG vectors' is a genuinely useful side-effect hint (the chart becomes a manipulable node rather than a flattened image), but nothing is said about which frame it lands in, whether nodes are created, permissions, or failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The single sentence is front-loaded and free of waste, but here brevity is under-specification rather than discipline. It is appropriately sized only if the schema were self-documenting, which it is not.

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

Completeness2/5

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

For a five-parameter, enum-bearing creation tool with no annotations and no output schema, this definition is too thin. Nothing tells the agent the target frame, the expected dataset shape, or what the call returns, so correct invocation depends almost entirely on guesswork.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Five parameters, four required, at 0% schema description coverage, and the description explains none of them. frameId, type, labels, datasets, and fmt are left entirely opaque — there is no indication of what a 'dataset' object should contain or how fmt interacts with the chart type.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Add) and resource (chart) plus a distinguishing output trait: charts are inserted as editable SVG vectors, not as raster images. It separates itself reasonably from sibling add_* tools such as add_legend and add_text, though it never names an alternative explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites (e.g. an existing frame/slide must exist), and no reference to any sibling alternative. The agent must infer that create_slide/focus_frame precede this call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.