Skip to main content
Glama

Render ECharts

render_echart

Renders Apache ECharts option objects to SVG on the server, producing deterministic charts without a browser. Returns raw SVG source and echoed option.

Instructions

Renders an Apache ECharts visualization to SVG (server-side, no browser). Returns the raw SVG source plus the echoed option. Canvas/PNG raster rendering arrives in v1.1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeNoBuilt-in theme name (e.g. 'light', 'dark') or an inline theme JSON object.light
widthNoRender width in pixels.
heightNoRender height in pixels.
optionYesStandard Apache ECharts option object (full passthrough to echarts v6).
rendererNoOutput mode: 'svg' (vector, available now) or 'canvas'/'dual' (raster PNG, ships in v1.1).svg
animationNoWhether to emit an animated SVG. Disabled by default for deterministic output.
backgroundNoBackground color for the chart (e.g. '#ffffff' or 'transparent').transparent
devicePixelRatioNoDPI multiplier (raster only).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
svgYesRaw SVG source of the rendered chart.
themeYesTheme name used ('inline' when a theme object was supplied).
widthYes
heightYes
versionYesPinned echarts runtime version.
rendererYes
backgroundYes
Behavior4/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 that rendering happens server-side without a browser, returns raw SVG plus the echoed option, and that canvas/PNG raster rendering is not yet available (v1.1). This is valuable behavioral context, though it does not mention what happens when canvas/dual is requested or other edge cases like error handling.

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?

The description is very concise: two sentences that efficiently state the action, output format, return value, and version limitation. Every sentence earns its place with no redundancy or fluff.

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?

Despite being brief, the description covers essential context: server-side rendering, SVG output, return payload, and the upcoming canvas/PNG support. Given the rich input schema and presence of an output schema, the description fills the main gaps. It misses explicit usage guidance relative to siblings and error handling for unsupported renderer modes, but is otherwise sufficiently complete for a complex tool.

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?

The input schema covers 100% of parameters with descriptions, so the baseline is 3. The description adds no new parameter details beyond mentioning the 'echoed option', which overlaps with the schema's description of the 'option' parameter. Thus, it does not meaningfully enhance parameter understanding.

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 clearly defines the tool's purpose: 'Renders an Apache ECharts visualization to SVG' with the specific verb 'renders' and explicit output format. It also adds scope context ('server-side, no browser') and distinguishes from siblings by focusing on rendering rather than validation or listing.

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 provides contextual usage ('server-side, no browser') and notes that canvas/PNG is not yet available, which implies when to use it (when SVG is needed). However, it gives no explicit guidance on when to choose this over sibling tools like validate_echart_option or list_chart_types, and lacks any exclusions or alternative recommendations.

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/ryuk3nd0/echarts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server