Skip to main content
Glama

create_chart

Create a chart from an existing dataset. Specify dataset ID, title, viz type, and metrics; optionally attach to dashboards or preview with dry run.

Instructions

Create a chart from an existing dataset.

Recommended workflow: create_dataset → create_chart (with dashboards param to attach it). Use list_datasets to find dataset_id and list_dashboards to find dashboard IDs.

Args: dataset_id: ID of the dataset to visualize title: Chart title viz_type: Visualization type (e.g. "echarts_timeseries_bar", "pie", "big_number_total", "table") metrics: Metric names or ad-hoc metric objects groupby: Columns to group by time_column: Time column for time-series charts template: Defaulting strategy for missing chart fields ('auto' or 'minimal') params_json: Optional JSON object to merge into chart params dashboards: Dashboard IDs to attach this chart to validate_after_create: Run chart-data validation after create repair_dashboard_refs: Attempt to repair stale dashboard chart references when dashboards are provided. Defaults to False so create_chart does not mutate dashboard layouts unless explicitly requested. dry_run: If True, validate inputs and return a preview without making any changes (default: False)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idYes
titleYes
viz_typeYes
metricsNo
groupbyNo
time_columnNo
templateNoauto
params_jsonNo
dashboardsNo
validate_after_createNo
repair_dashboard_refsNo
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses behavioral traits such as the dry_run parameter (preview without changes), the default behavior of repair_dashboard_refs (no mutation unless requested), and the validate_after_create flag. It does not mention rate limits or auth, but overall transparency is good.

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?

The description is fairly long but well-structured with a purpose statement, workflow recommendation, and bullet-point parameter list. It front-loads the key information. Every sentence adds value, though it could be slightly more concise.

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?

With 12 parameters, 0% schema coverage, and no annotations, the description covers the tool's behavior comprehensively, including dry_run, repair_dashboard_refs, validation, and template strategy. An output schema exists, so return values need not be explained. The description is sufficient for an agent to use the tool correctly.

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 description coverage is 0%, so the description must compensate. It lists all 12 parameters and explains most, including examples for viz_type, the template enum, and the nuanced behavior of repair_dashboard_refs. Some parameter details (e.g., metrics can be ad-hoc objects) could be clearer, but overall adds significant meaning beyond the schema.

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 states 'Create a chart from an existing dataset,' providing a specific verb and resource. It distinguishes from siblings like update_chart and validate_chart by outlining the recommended workflow (create_dataset → create_chart) and referencing list_datasets and list_dashboards.

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?

The description gives explicit context on when to use the tool, referencing the recommended workflow and listing prerequisite tools (list_datasets, list_dashboards). It also hints at when not to use regarding repair_dashboard_refs (defaults to False to avoid mutation). However, it does not explicitly state when to avoid using this tool in favor of alternatives.

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/Evan-Kim2028/preset-mcp'

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