Skip to main content
Glama

chart

chart

Create, read, and update persistent ECharts, Three.js, or Excalidraw visualizations; revision-aware updates preserve manual edits, and users can view fullscreen and download.

Instructions

Create, read and update persistent ECharts, Three.js or Excalidraw charts. Read the API index and relevant modules (three for 3D, excalidraw for diagrams) before create. Users can edit data, go fullscreen and download charts. Read the latest chart before update and pass expectedRevision to preserve manual changes.

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": {
      "action": "<action>",
      "reason": "<reason>"
    },
    "name": "chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
mapsNoOptional GeoJSON or SVG maps registered before rendering.
limitNoFor action=api index pagination.
queryNoFor action=api: omit for the index or pass an exact module id returned by the index.
titleNoAccessible title rendered with the chart.
actionYesRead API guidance, create a chart, read its latest saved data, or update it using expectedRevision.
engineNoDefaults to echarts. Read module three for 3D or excalidraw for editable diagrams.
heightNoRendered height in pixels. Defaults to 380.
offsetNoFor action=api index pagination.
optionNoFor create/update: complete JSON option for the chosen engine. ECharts formatter must be a string template, never a function-source string; omit it for default tooltips. Read module three for 3D, or excalidraw for diagrams. Excalidraw: elements is an array; appState is an object; omit files unless using image elements. files is a resource object keyed by fileId, never a string or array.
reasonYesConcise reason for this tool call.
chartIdNo
rendererNoECharts renderer. Defaults to canvas.
descriptionNoAccessible plain-language chart summary.
expectedRevisionNoFor update: revision returned by the latest read; prevents overwriting manual edits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.10

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses persistence, that users may manually edit data and also go fullscreen/download, and that expectedRevision is an optimistic-concurrency guard against clobbering those edits. It also flags the ECharts formatter-as-string-template constraint. It omits permissions, size/latency limits, and what a read returns.

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?

Four front-loaded sentences: capabilities, create precondition, user-facing behavior, update precondition. Dense and mostly waste-free, though the middle sentence about fullscreen/download is the least essential and the create/update preconditions are packed into longer clauses.

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?

For a 14-parameter, action-multiplexed tool with a 93%-documented schema, the description covers the lifecycle (api guidance → create → read → update) and the concurrency contract. With no output schema, the only real gap is what read returns, which 'revision returned by the latest read' largely implies.

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?

Schema coverage is 93%, so the baseline is 3; the description still adds real meaning by explaining the engine→module mapping for creation and the purpose of expectedRevision. It also clarifies the Excalidraw option shape (elements array, appState object, files keyed by fileId), though much of that overlaps existing schema descriptions.

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 names specific verbs (create, read, update) and a precise resource (persistent ECharts, Three.js, or Excalidraw charts) along with the three supported engines. An agent can immediately tell this apart from sibling tools like browser, media, or codeSandbox, which have no rendering/persistence semantics.

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?

It gives explicit workflow preconditions: read the API index and the relevant module (three for 3D, excalidraw for diagrams) before create, and read the latest chart before update so expectedRevision preserves edits. It does not name an alternative tool or state when not to use this one, which keeps it below a 5.

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