charts
Create, publish and update interactive Plotly charts on autario.com from autario data, each with its insight text and cited sources.
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": {
"action": "<action>"
},
"name": "charts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | create_from_spec: Chart title (also settable via builder_spec.title; this top-level wins if both set). Format: "{Topic} | {Scope} ({YYYY-YYYY}, {unit})". The YYYY-YYYY year range is REQUIRED whenever the chart has a time axis (pull from the actual data span you queried). The unit is REQUIRED whenever find_data action "info" → unit is a non-empty string (copy verbatim, e.g. "Mt CO2e", "% of GDP", "per 1,000 live births"). If find_data action "info" → unit is null/empty, omit the unit | NEVER invent one. Example with both: "Greenhouse Gas Emissions by Country (2010-2024, Mt CO2e) | World Bank". Example unit-only: "Infant Mortality by Race (per 1,000 live births) | NCHS". publish: Chart title. Include time range in parentheses, use pipe | as separator (e.g. "GDP Growth | Major Economies (2000-2024)") update: Updated chart title | |
| action | Yes | Which operation to run. create_from_spec = a chart from a builder spec, needs builder_spec, dataset_ids; publish = a chart from a Plotly spec, needs title, dataset_ids; update = replace spec, title or text of your chart, needs chart_id, plotly_spec. | |
| insight | No | create_from_spec: 2-3 sentence data insight using ONLY numbers from get_data action "query"/find_data action "schema" results. Hallucinated numbers are rejected with the available anchor list. publish: 2-3 sentence data insight with specific numbers from the queried data. Must use verified numbers from get_data action "query" results, never from training data update: Updated insight text with verified numbers | |
| chart_id | No | The chart ID or slug returned by charts action "publish" | |
| narration | No | create_from_spec: Longer description (optional, defaults to insight) publish: Longer description of the analysis methodology and context update: Updated analysis description | |
| dataset_ids | No | create_from_spec: UUID array of datasets backing this chart. Autario pulls real data from these tables. publish: Array of dataset UUIDs that this chart uses. Autario pulls real data from these datasets to ensure no hallucinated values | |
| plotly_spec | No | publish: Plotly specification with traces array and layout object. Traces use x_col/y_col for column references and group_by/group_value for filtering (e.g. {"traces": [{"x_col": "year", "y_col": "value", "group_by": "country", "group_value": "USA"}], "layout": {}}) update: Updated Plotly specification with traces and layout | |
| builder_spec | No | Structured Builder spec. Required: chart_type + x_col + y_col/y_cols (axis charts), label_col + value_col (pie/donut), x_col + group_by + value_col (heatmap). Optional: group_by, group_values, facet_by/facet_values (donut grid), heatmap_scale, title, palette/color_scheme, axis (x_title, y_title, y_min, y_max, log_scale, y_format, tick_angle, x_date_format), annotations, event_bands, overlays, legend_pos, bg_color, font_color, chart_height. See chart_instructions() for full reference. |