Skip to main content
Glama

Kalpana Designer

Make a chart from data

make_chart

Draw a chart from numbers as editable layers in a design: line, area, bar, horizontal bar, stacked bar, scatter, donut, pie, sparkline, progress ring, gauge or radar. Every point, bar, tick and label is computed exactly; pick a style, a palette and a font_size, and place it with x, y, width and height. Adds one new group each call and returns its chart_id and facts (ranges, labels dropped for lack of room). Saved as a new revision that undo reverts; if any part is refused, nothing changes. Use it for any chart instead of drawing bars or lines with shape_path or by hand; to change a chart, delete its group with edit_structure and draw it again.

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": {
      "page_id": "<page_id>",
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>",
      "series": "<series>",
      "intent": "<intent>"
    },
    "name": "make_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesWhere the chart sits in its parent, and its size, px.
yYes
maxNoProgress ring, gauge and radar: the full-scale value (default 100, or radar's largest value).
axesNoAxis labels, x and y together (default: per style; off for sparklines and rings). `x_labels` and `y_labels` set each side on its own.
dotsNoA dot on each point (default: per style).
gridNo
kindNo
nameNoThe chart layer's name (default "Chart").
sizesNoScatter: a size per point, making it a bubble chart.
styleNoHow it is drawn (default clean). Vary it with the design.
ticksNoGrid lines (default 4). With both y_min and y_max the lines are exactly (y_max - y_min) / ticks apart. 0 = no grid lines, no y tick labels and no left margin.
widthYes
y_maxNo
y_minNoFix the value range (default: from 0, or the data's minimum when it is below 0, up to a round number above the maximum).
cornerNoBar corner radius px (default per style; half the width = pill).
heightYes
intentYesOne short sentence: what you change and why. Kept in the design history.
labelsNoA label per value along the x axis (per bar, segment or spoke).
legendNoA key of series names above the plot (default: when 2+ series); on donuts and pies, of the `labels` (default: when given).
prefixNo
seriesYes
smoothNoCurve lines through the points (default: per style).
suffixNo
page_idYesThe page to work on, as returned by create_design.
paletteNoSeries colours in order, as hex. Default: a built-in palette.
step_atNoStep chart: where the level changes between two points. `start` (default) holds a value until the next point, `end` jumps at the first point of each pair, `middle` changes halfway.
decimalsNoDecimal places in value labels (default: 0 for whole data, else 1), or "auto" to print as many as the data and fixed range need.
x_labelsNoThe category labels under the plot (default: as `axes`).
x_valuesNoScatter: the x of each point (default 0, 1, 2...).
y_labelsNoThe value tick labels left of the plot (default: as `axes`).
bar_widthNoBar thickness as a share of its slot, 0.1 to 1 (default per style).
font_sizeNoSize of every chart label, px (default: the height / 22, at least 24 px, so it reads when the chart is shown small; below about 20 px the result warns).
parent_idNoPut the chart inside this layer (the scene when omitted).
thicknessNoRing thickness, px (donut, progress ring, gauge).
grid_colorNoHex.
line_widthNo
text_colorNoHex.
annotationsNoPoints worth pointing out.
font_familyNo
value_labelsNoLabel the last point / the top of each bar / the ring's value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: states it adds one new group per call, returns chart_id and facts (ranges, dropped labels), is saved as a new revision that undo reverts, and is atomic — "if any part is refused, nothing changes." That is the exact mutability/rollback context an agent needs for a write 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?

Front-loads the capability, then the behavioral contract, then the routing advice. The enumeration of thirteen chart kinds partly duplicates the ChartKind enum, which is minor waste, but nothing is padded or vague.

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

Completeness4/5

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

For a 40-param mutation tool with no output schema, the description covers what is returned (chart_id, facts), undo/revision semantics, atomicity and the edit path. Remaining gaps are the styling parameters the schema handles, not conceptual omissions.

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?

With 40 parameters and 73% schema coverage, the schema already documents most fields. The description only echoes parameters that are already documented (style, palette, font_size, x/y/width/height) rather than illuminating the undocumented remainder (prefix, suffix, line_width, grid, font_family, bare y_max/grid). Baseline 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?

Specific verb + resource: "Draw a chart from numbers as editable layers in a design," with the supported chart kinds enumerated. It distinguishes itself from siblings by name (shape_path for hand-drawn bars/lines, edit_structure for modifying).

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?

Explicit routing: "Use it for any chart instead of drawing bars or lines with shape_path or by hand," plus the modification path "to change a chart, delete its group with edit_structure and draw it again." Both the when and the alternative are named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources