Skip to main content
Glama
Chuk MCP Chart

Chuk MCP Chart

Official
by IBM

chart_from_json

Read-only

Create bar, line, pie, doughnut, radar, polar, or area charts from a JSON array by using the first string field as labels and numeric fields as datasets.

Instructions

RECOMMENDED — the easiest way to create a chart. Pass a JSON array of objects; the first string field becomes labels, every numeric field becomes a dataset. Example: [{"name":"Python","score":28},{"name":"JS","score":21}]. chart_type: bar, line, pie, doughnut, radar, polar, or area.

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": {
      "json_data": "<json_data>"
    },
    "name": "chart_from_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
json_dataYes
chart_typeNobar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4/5.0
Behavior4/5

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

Beyond readOnlyHint=true, it discloses substantive behavior no annotation could convey: the first string field becomes labels and each numeric field becomes a dataset, with a concrete working example. It omits what the tool actually produces (image, URL, or chart object) and whether the chart is rendered or persisted, but the data-mapping contract is unusually well specified.

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 recommendation and input contract are front-loaded, the example is compact and immediately reusable, and the enum list closes the description. No sentence is filler.

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?

With three parameters, no output schema and no annotations beyond readOnly, the description leaves the return value entirely unexplained — an agent cannot tell whether it receives an image, a file path, or a chart id. The input side is well covered, so the gap is real but one-sided.

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 0%, so the description carries the full burden, and it does well on two of three parameters: json_data gets structural rules plus an example, and chart_type gets a full enumeration of seven values and implies the 'bar' default context. The 'title' parameter is never mentioned, leaving one gap.

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 and resource ('create a chart') and the input format ('Pass a JSON array of objects'), which distinguishes it from chart_from_csv by naming the JSON input path. It stops short of explicitly contrasting with a named sibling, so it lands at a clear-but-not-differentiating 4.

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?

'RECOMMENDED — the easiest way to create a chart' signals a preference over alternatives, which is real routing guidance. It does not name when to fall back to chart_from_csv (e.g., when data is already a CSV file), so no explicit exclusion is given.

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

Deploy Server

Other Tools