Skip to main content
Glama

Render chart

render_chart
Read-onlyIdempotent

Draws given numbers (e.g. from an analytics result) as a replient.ai chart: line, area, bar, stacked bar, horizontal bar, donut or KPI tiles. MCP Apps clients show it inline; every client also gets a text table. Reads no data itself.

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": {
      "type": "<type>",
      "title": "<title>",
      "series": "<series>"
    },
    "name": "render_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesline/area: trend. bar: compare (series grouped). stacked_bar: parts of a total. horizontal_bar: rank up to 50 categories. donut: share of a whole (over 6 slices fold into "Other"). kpi: up to 6 headline tiles.
titleYesWhat the chart shows, e.g. "Comments per day".
labelsNoX-axis or category labels; ISO dates are localised. Optional for kpi.
localeNoBCP 47, e.g. "de-AT". Default: the reader's locale.
seriesYes1-6 series (kpi: one per tile; donut: exactly one).
sourceNoFootnote naming the data source and period.
currencyNoISO 4217 code for valueFormat "currency", e.g. "EUR".
subtitleNoBrand, period or filter.
valueFormatNopercent: 42.5 = 42.5 %. duration: seconds. currency: set currency.number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavioral context beyond them: MCP Apps clients render inline, every client also receives a text table fallback, and the tool performs no data reads. It does not mention limits or failure behavior (though the schema carries maxItems constraints).

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?

Three short sentences, front-loaded with the action and the supported output types, then the rendering/transport detail, then the scoping caveat. No wasted wording.

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 9-parameter tool with a fully documented schema and no output schema, the description covers what is produced (inline chart plus text table) and what the tool does not do (read data). Remaining gaps around limits and error cases are minor given the schema's constraints.

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?

Schema description coverage is 100% and the enum descriptions already explain type selection, value/label pairing, formats and KPI-only fields in depth. The description adds only the framing that values come from a result set, not per-parameter meaning, so the baseline of 3 applies.

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?

States a specific verb and resource ("Draws given numbers ... as a replient.ai chart") and enumerates the concrete output types (line, area, bar, stacked bar, horizontal bar, donut, KPI tiles). "Reads no data itself" cleanly separates it from the analytics siblings that produce the numbers.

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?

Gives clear context: it renders numbers that come from elsewhere (e.g. an analytics result) and fetches nothing, so the agent knows to call an analytics tool first. It stops short of naming a specific sibling or stating explicit exclusions.

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