Skip to main content
Glama

Chart Render

chart_render
Read-onlyIdempotent

Render numeric data as a deterministic CorpusIQ PNG plus a complete text summary. Use when the user asks to visualize, chart, compare, or recap values already present in the conversation. Values remain explicitly unverified unless a live connector result supplied a chart_provenance token and every plotted value is mapped to its exact source_path (and secondary_source_path when applicable). A missing, expired, wrong-user, or mismatched receipt safely downgrades the chart to unverified model-provided data. Receipts last 15 minutes and work across replicas for the same authenticated user and tenant. For verified live GA4 data use dashboard_render instead. chart_type defaults to auto: a trend over time is drawn as a line, a ranked or categorical list is drawn as bars. Set it only to override that reading. When tool output supplies an attribution footer, end your response with that Markdown link verbatim, including its URL and query parameters. Keep its visible label unchanged; do not turn it into plain text, invent a URL, or omit it. Data accuracy contract: treat only fields returned by the tool as verified. Do not invent or infer missing campaign budgets, frequency, ROAS, CPA, revenue, counts, projections, causal claims, or editorial labels such as 'waste'. Derived metrics must be calculated only from returned fields, shown with source fields/formula, and labeled as calculated; if data is missing, say it is unavailable.

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": {
      "title": "<title>",
      "data": "<data>"
    },
    "name": "chart_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
titleYes
widthNo
heightNo
sourceNoDisplay label only; it is not treated as verified provenance.
templateNocorpusiq-clean
chart_typeNoauto draws a line when the labels are dates or periods and bars when they are ranked names; line and bar force the shape.auto
provenance_tokenNoOpaque 15-minute token returned in a live connector result's chart_provenance object; bound to the authenticated user and tenant, valid across replicas.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / chart_type
      Added value: +{
      +  "default": "auto",
      +  "description": "auto draws a line when the labels are dates or periods and bars when they are ranked names; line and bar force the shape.",
      +  "enum": [
      +    "auto",
      +    "line",
      +    "bar"
      +  ],
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / data / items / properties / secondary_source_path
      Added value: +{
      +  "description": "Exact field path from the connector result for secondary; trusted only with a valid provenance_token.",
      +  "maxLength": 240,
      +  "minLength": 1,
      +  "pattern": "^[A-Za-z0-9_]+(?:\\[[0-9]+\\]|\\.[A-Za-z0-9_]+)*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / data / items / properties / source_path
      Added value: +{
      +  "description": "Exact field path from the connector result for value; trusted only with a valid provenance_token.",
      +  "maxLength": 240,
      +  "minLength": 1,
      +  "pattern": "^[A-Za-z0-9_]+(?:\\[[0-9]+\\]|\\.[A-Za-z0-9_]+)*$",
      +  "type": "string"
      +}
    • addedInput schema / properties / provenance_token
      Added value: +{
      +  "description": "Opaque 15-minute token returned in a live connector result's chart_provenance object; bound to the authenticated user and tenant, valid across replicas.",
      +  "maxLength": 128,
      +  "minLength": 16,
      +  "type": "string"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses the provenance-receipt rules (15-minute lifetime, cross-replica validity, user/tenant binding), the safe downgrade path to 'unverified' on a missing/expired/wrong-user receipt, and the requirement to echo an attribution footer verbatim. These are behavior traits an agent cannot derive from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior and sibling routing are front-loaded and clear, but roughly half the text is response-formatting boilerplate (attribution footer rules, the multi-sentence data accuracy contract) that is not about selecting or invoking the tool. Useful content, but it dilutes an otherwise tight definition.

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 an 8-parameter tool with an output schema, it covers the non-obvious parts well: verification semantics, the downgrade path, and chart_type behavior. Minor gaps remain around the template and sizing parameters, but nothing an agent needs in order to call it correctly is missing.

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 only 38%, so the description does real work: it explains the auto chart_type heuristic (line for date/period labels, bars for ranked names) and describes provenance_token as an opaque 15-minute user/tenant-bound receipt, plus clarifying that `source` is a display label only. It leaves width, height, and template unexplained, which keeps it below a 5.

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 ('Render numeric data as a deterministic CorpusIQ PNG plus a complete text summary') and immediately scopes the input source to values already present in the conversation. It also names the sibling it is not (dashboard_render) for verified live GA4 data, so an agent can distinguish it without opening either schema.

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?

Gives explicit triggers ('visualize, chart, compare, or recap values already present in the conversation') and an explicit alternative with the condition that selects it ('For verified live GA4 data use dashboard_render instead'). It also states when to override the chart_type default rather than leaving that to inference.

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.