Semiotic
v3.15.1Verified React chart generation: select, validate, repair, render, and inspect charts through MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
auditArtifact Audit an explicit artifact contract
Evaluate a chart and its explicit artifact contract under a named policy. The tool audits only supplied claims, evidence, source identity, review state, and time state; missing facts remain missing or unknown. Results are capped and report truncation explicitly.
| Parameter | Type | Description |
|---|---|---|
component * | string | Semiotic component name. |
contract * | object | Complete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown. |
policyId * | string | Explicit built-in policy identifier used for this operation. |
data | array | Optional explicit row data overriding props.data. |
exceptions | array | |
now | string | Explicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp. |
props | object | Chart props/config. Data may be supplied here or separately. |
recommendRepresentation Recommend a defensible representation
Recommend chart and non-chart outcomes from explicit data and an explicit artifact contract. Evidence, source, review, and time facts are never synthesized. The named policy can recommend waiting, collecting data, or making no claim instead of forcing a chart.
| Parameter | Type | Description |
|---|---|---|
contract * | object | Complete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown. |
policyId * | string | Explicit built-in policy identifier used for this operation. |
data | array | Explicit row data; omit only when contract evidence is sufficient. |
exceptions | array | |
identifiers | array | |
intent | ||
maxChartCandidates | integer | |
now | string | Explicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp. |
preferredComponent | string | Optional Semiotic component preference. |
repairArtifact Repair an explicit artifact contract
Propose repairs for a chart and explicit artifact contract. By default this is proposal-only. If enabled, safe application fills missing component and configuration/data identity fields only; existing bindings are never overwritten. Mismatches require an explicit revision and claim reassessment. Source, evidence, review, approval, and time facts are never invented. Returned contracts omit evidence samples, report transfer losses, and are withheld above a 64 KiB UTF-8 cap.
| Parameter | Type | Description |
|---|---|---|
component * | string | Semiotic component name. |
contract * | object | Complete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown. |
policyId * | string | Explicit built-in policy identifier used for this operation. |
applySafeIdentityRepairs | boolean | Fill missing identity fields only; existing mismatches require an explicit revision and claim reassessment. Defaults to false. |
data | array | |
exceptions | array | |
now | string | Explicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp. |
props | object |
explainRefusal Explain an artifact policy refusal
Evaluate an explicit artifact contract under a named policy and explain why publication or action is refused. Missing evidence, source, review, and time facts stay explicit rather than being guessed.
| Parameter | Type | Description |
|---|---|---|
component * | string | Semiotic component name. |
contract * | object | Complete explicit artifact contract. Validate against semiotic://artifact-contract-schema; omitted source, review, and time facts stay omitted or explicitly unknown. |
policyId * | string | Explicit built-in policy identifier used for this operation. |
data | array | |
exceptions | array | |
now | string | Explicit reference clock for review, freshness, and expiry checks. Use an ISO 8601 timestamp. |
props | object |
convertVegaLite Convert a Vega-Lite chart
Import a single-view Vega-Lite spec with inline data as a Semiotic ChartConfig. Strict mode reports unsupported semantics. Request lossy mode to receive a schema-validated approximation with warnings.
| Parameter | Type | Description |
|---|---|---|
spec * | object | A Vega-Lite specification with inline data.values. |
mode | string | Defaults to strict. |
getSchema
Return the prop schema for a Semiotic chart component. Pass { component: '<name>' } to get its props, or omit component to list all available components. Components marked [renderable] can be passed to renderChart for static SVG output.
| Parameter | Type | Description |
|---|---|---|
component | string | Component name, e.g. 'LineChart'. Omit to list all. |
suggestChart
Lightweight heuristic chart recommender for a small data sample (1-5 rows) with capability filtering (push API, linked hover, SSR, selection, legend). Returns ranked recommendations with example props. For richer capability-descriptor ranking (scores, reasons, caveats) and the full 13-intent taxonomy, prefer `suggestCharts` (plural).
| Parameter | Type | Description |
|---|---|---|
data * | array | 1-5 sample data objects |
capabilities | object | Capability constraints — set a key to true to require, false to forbid. Unset keys are ignored. |
intent | string | Visualization intent. Accepts this engine's intents (comparison, trend, distribution, relationship, composition, geographic, network, hierarchy) AND the richer suggestCharts taxonomy (compare-categori… |
renderChart
Render a Semiotic chart to static SVG or PNG. This is a static snapshot path: props must include data immediately, and ref/push-mode charts cannot be rendered through this tool. Returns SVG text by default or an image/png artifact when format='png', plus a "Render evidence" JSON block (mark counts by type, resolved axis domains, empty flag, annotation count, accessible name) — read the evidence instead of parsing the SVG to verify the chart actually rendered data marks. An optional explicit contract is preserved in render evidence together with its transfer status; missing contract facts are…
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart', 'BarChart' |
contract | object | Optional explicit artifact contract. The render evidence reports whether it was preserved, invalid, or an unsupported version. |
format | string | Output format: 'svg' (default) returns SVG markup, 'png' returns image/png artifact data. PNG requires the 'sharp' package. |
props | object | Chart props object, e.g. { data: [...], xAccessor: 'x' }. |
theme | object | CSS custom properties for theming, e.g. { '--semiotic-bg': '#1a1a2e', '--semiotic-text': '#ededed' }. Only --semiotic-* variables are applied. |
renderInteractiveChart Render interactive Semiotic chart
Render a static-data Semiotic chart as a ChatGPT Apps widget. Use this after suggestCharts/getSchema/diagnoseConfig when the user wants to see an interactive chart inside ChatGPT. The server renders Semiotic to SVG and the widget adds fit, zoom, data, hover, and render-evidence controls. Available components: AreaChart, BarChart, BigNumber, BoxPlot, BubbleChart, BumpChart, CalendarHeatmapRecipe, CandlestickChart, ChainReactionChart, ChordDiagram, ChoroplethMap, CirclePack, CollisionSwarmChart, ConnectedScatterplot, CrucibleChart, DependencyForestChart, DifferenceChart, DistanceCartogram, Donut…
| Parameter | Type | Description |
|---|---|---|
component * | string | Renderable chart component name, e.g. 'LineChart', 'BarChart', 'GaugeChart'. |
props | object | Static Semiotic chart props, including data/accessors where required. |
theme | object | CSS custom properties such as { '--semiotic-bg': '#fff', '--semiotic-text': '#111' }. Only --semiotic-* variables are applied. |
diagnoseConfig
Diagnose a Semiotic chart configuration for common problems (empty data, bad dimensions, missing accessors, wrong data shape, color contrast issues, etc). Pass usageMode='push' for ref-based React HOCs that intentionally omit data; omit usageMode or pass 'static' for renderChart/MCP/server configs where data is required. Checks WCAG color contrast ratios and suggests COLOR_BLIND_SAFE_CATEGORICAL for accessibility. Returns a human-readable diagnostic report with actionable fixes.
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart' |
props | object | Chart props object, e.g. { data: [...], xAccessor: 'x' }. |
usageMode | string | Validation mode. Use 'push' for ref-based React HOCs that omit data; use 'static' or omit for renderChart/MCP/static data configs. |
auditAccessibility
Audit a Semiotic chart configuration against the Chartability (POUR-CAF) accessibility framework — Perceivable, Operable, Understandable, Robust, Compromising, Assistive, Flexible. Statically grades the config (no DOM/AT): credits the built-ins every HOC ships (keyboard nav, focus ring, skip link, screen-reader data table, reduced-motion + forced-colors, shareable state), flags author-actionable gaps (missing title/description/summary, low contrast, small text, color-only encoding, undescribed trends, data density), and routes everything that needs real assistive-technology testing to a 'man…
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart' |
describe | boolean | True if ChartContainer's describe option (auto-generated L1–L3 description via describeChart) is enabled — passes the 'features described' heuristic. |
inChartContainer | boolean | True if the chart is (or will be) wrapped in a ChartContainer exposing data-download/copy-config actions. |
navigable | boolean | True if ChartContainer's navigable option (structured navigation tree via buildNavigationTree) is enabled — passes the 'navigable structure' heuristic. |
props | object | Chart props object, e.g. { data: [...], xAccessor: 'x', title: '...' }. |
critiqueChart
Critique a chart's configuration, representation, and fit to the supplied analytical intent. Returns a concise static assessment, ranked findings, and the capability score when data supports it.
| Parameter | Type | Description |
|---|---|---|
component * | string | Semiotic component name. |
props * | object | Chart configuration including its authored data. |
intent | string | A registered analytical intent such as trend or distribution. |
evaluateChart
Evaluate a Semiotic chart through one deterministic quality pass: numeric data contracts, configuration and representation/deception checks, and static Chartability accessibility heuristics. Returns the independent audit reports plus a severity-ranked findings list and notification feed. Pass data separately when it should override props.data; use inChartContainer, describe, or navigable to describe the intended accessibility wrapper. This is static analysis and does not replace manual assistive-technology testing or render evidence.
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart'. |
data | array | Optional explicit dataset. When supplied, this is used as the effective props.data for evaluation. |
describe | boolean | Whether ChartContainer's generated description is enabled. |
inChartContainer | boolean | Whether the chart will be wrapped in ChartContainer or an equivalent control surface. |
navigable | boolean | Whether ChartContainer's structured navigation tree is enabled. |
props | object | Chart props/config, including accessors and optional data. |
auditMobileVisualization
Audit a Semiotic chart configuration for mobile visualization risks. Use before generating phone-sized charts or when adapting a desktop chart to mobile. Flags fixed desktop widths, rough mark-density overload, hover-only detail, small touch targets, complex gestures without controls, legend dependence, annotation overload, and missing mobile transformation hints. Static analysis only: still verify rendered charts at phone widths.
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart', 'Scatterplot', or 'BarChart'. |
inChartContainer | boolean | Whether the chart is wrapped in ChartContainer or an equivalent summary/control surface. |
props | object | Chart props/config to audit. |
targetSize | integer | Desired comfortable touch target size in CSS pixels. Defaults to 44. |
viewportWidth | integer | Mobile viewport width in CSS pixels. Defaults to 390. |
reportIssue
Generate a GitHub issue URL for Semiotic bug reports or feature requests. Returns a URL the user can open to submit. For rendering bugs, include the component name, props summary, and any diagnoseConfig output in the body.
| Parameter | Type | Description |
|---|---|---|
title * | string | Issue title, e.g. 'Bug: BarChart tooltip shows undefined' |
body | string | Issue body with details, reproduction steps, diagnoseConfig output |
labels | GitHub labels, e.g. ['bug'] or 'bug' |
applyTheme
Get usage instructions for a named Semiotic theme preset. Returns ThemeProvider examples, CSS custom properties, and design token export patterns. Available themes: light, dark, high-contrast, pastels, pastels-dark, bi-tool, bi-tool-dark, italian, italian-dark, tufte, tufte-dark, journalist, journalist-dark, playful, playful-dark, carbon, carbon-dark.
| Parameter | Type | Description |
|---|---|---|
name | string | Theme preset name, e.g. 'tufte', 'pastels-dark', 'bi-tool'. Omit to list all available themes. |
interrogateChart
Conversational interrogation of a Semiotic chart. Extract a statistical summary and answer natural language questions about the data, trends, and outliers. Returns a summary and guidance for an AI to generate a textual answer and visual annotations.
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart' |
props * | object | The full chart props including data |
query | string | A natural language question about the chart data |
groundChart Ground a Semiotic chart for a non-visual reader
Build the agent-reader grounding payload for a Semiotic chart: the layered L1–L3 natural-language description, the L4 communicative-act sentence (what the chart is asking the reader to do), and a structured navigation tree (chart → axes/series → datum). Use this to interpret a chart faithfully without pixels.
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name, e.g. 'LineChart' |
props * | object | The full chart props including data |
suggestStreamCharts
Recommend streaming Semiotic charts for a schema (not row data). Pass fields (with optional cardinality and additive hints) plus optional throughput (band or rows/sec), retention, shape ('append'|'keyed'|'aggregate'), and keyFields. Ranks realtime XY charts plus push-capable ordinal/value/xy charts (BarChart, PieChart, Scatterplot, BigNumber, GaugeChart, …). Returns suggestions, excluded fits-reasons, the ranking intents (inferred when none is given), schema warnings, and optional stretch picks when audience is set.
| Parameter | Type | Description |
|---|---|---|
schema * | object | Stream schema — fields plus throughput/retention/shape hints. No row data. |
audience | object | |
intent | Ranking intent. | |
maxResults | integer |
suggestStreamDashboard
Compose a multi-panel dashboard from one or more stream schemas. Honors AudienceProfile.dashboard layout policy (cellBudget, leadFamilies, windowPreference).
| Parameter | Type | Description |
|---|---|---|
schemas * | ||
audience | object | |
budget | integer | |
intent |
suggestDashboard
Generate a dashboard of complementary chart panels for a dataset — each panel answers a distinct analytical intent (trend, rank, distribution, correlation, etc.) and the engine diversifies by chart family by default. Heuristic only; no LLM call. Use when the user asks 'show me this data' or 'build me a dashboard' rather than picking one chart.
| Parameter | Type | Description |
|---|---|---|
data * | array | Row data — array of objects. |
audience | object | Audience profile — familiarity, adoption targets, exposure level, and reception modality. |
diversifyByFamily | boolean | Prefer not to repeat chart families across panels (default true). |
fieldRoles | object | Per-field semantic or exact encoding-role hints used before chart ranking. |
identifiers | array | Fields that identify records and must not be used as visual encodings or measures. |
intents | array | Intents to cover. Omit to let the engine pick based on the data shape. |
maxPanels | integer | Maximum panels (default 6). |
suggestTokenEncoding
Recommend a semantic token / ISOTYPE encoding for a reader task. Use before drawing repeated dots, icons, glyphs, natural-frequency grids, quantile dotplots, or hybrid bar-token views. Returns the recommended tokenEncoding, warnings, alternatives, and matching suggestCharts capability intents. Accepts canonical token intents (precise-comparison, probability-estimation, risk-communication, memory, support-decision, etc.) and friendly aliases (measure, estimate probability, understand risk, remember, decide).
| Parameter | Type | Description |
|---|---|---|
taskIntent * | string | Reader task intent, e.g. 'estimate probability', 'understand risk', 'remember', 'measure', 'decide', or canonical token intents like 'probability-estimation'. |
audience | string | Audience for the recommendation. |
availableSpace | string | Space budget for visible tokens. |
concreteEntity | string | Concrete icon/glyph concept, e.g. person, bus, server. Becomes tokenEncoding.icon when useful. |
dataType | string | Data shape or meaning behind the tokenized view. |
precisionNeed | string | How much exact magnitude reading matters. |
suggestStretchCharts
Recommend literacy-growth chart picks for a dataset given an AudienceProfile. Returns charts the data supports but the audience is unfamiliar with (familiarity ≤ 3, or ≤ 4 at exposureLevel 2), each paired with the familiar chart it could substitute for and a rationale. Use when the consumer wants to gently expose users to less familiar but more analytically appropriate visualizations.
| Parameter | Type | Description |
|---|---|---|
audience * | object | Audience profile — familiarity, targets, exposure level, reception modality. |
data * | array | Row data. |
fieldRoles | object | Per-field semantic or exact encoding-role hints used before chart ranking. |
identifiers | array | Fields that identify records and must not be used as visual encodings or measures. |
intent | ||
maxResults | integer |
repairChartConfig Repair an unsuitable chart choice
Validate that a chart component is a sensible choice for a dataset, and if not, propose ranked alternatives that fit. Returns a structured status of ok, alternative, or unknown.
| Parameter | Type | Description |
|---|---|---|
component * | string | Chart component name to validate, e.g. 'PieChart' |
data * | array | Row data — array of objects. |
fieldRoles | object | Per-field semantic or exact encoding-role hints used before chart ranking. |
identifiers | array | Fields that identify records and must not be used as visual encodings or measures. |
intent | User intent — informs ranking of alternatives when the chart doesn't fit. | |
maxAlternatives | integer | Cap on alternatives returned (default 3). |
proposeChartVariants
Propose and score chart variants for a selected Semiotic component. Uses the capability registry plus heuristic variant discovery: registered variants, conservative transforms, and same-intent cross-family alternatives. Returns ranked proposals with fit/novelty/risk scores, rationale, and ready-to-use props. Use after suggestCharts when an agent wants to actively explore variants rather than stop at the first chart recommendation.
| Parameter | Type | Description |
|---|---|---|
component * | string | Base chart component to vary, e.g. 'LineChart', 'BarChart', or 'BoxPlot'. |
audience | object | Audience profile — familiarity, adoption targets, exposure level, and reception modality. |
data | array | Row data to profile. Overrides props.data when present. |
fieldRoles | object | Per-field semantic or exact encoding-role hints used before chart ranking. |
identifiers | array | Fields that identify records and must not be used as visual encodings or measures. |
intent | Ranking intent(s), e.g. trend, distribution, rank, compare-categories, composition-over-time. | |
maxResults | integer | Cap on proposals returned (default 8). |
props | object | Existing chart props. If props.data is present it is profiled; network/hierarchy/geo object data can be passed here as raw input. |
suggestCharts Recommend Semiotic charts
Recommend Semiotic charts for a dataset using heuristic capability descriptors. Returns ranked, structured suggestions with scores, reasons, caveats, and ready-to-use props; no LLM call is made.
| Parameter | Type | Description |
|---|---|---|
data * | array | Row data — array of objects. |
allow | array | Restrict to these component names. |
audience | object | Audience profile — familiarity, adoption targets, exposure level, and reception modality. |
deny | array | Exclude these component names. |
fieldRoles | object | Per-field semantic or exact encoding-role hints used before chart ranking. |
identifiers | array | Fields that identify records and must not be used as visual encodings or measures. |
intent | Ranking intent. One of: trend, compare-series, compare-categories, rank, part-to-whole, distribution, correlation, flow, hierarchy, geo, outlier-detection, composition-over-time, change-detection. Cus… | |
maxResults | integer | Cap on suggestions returned (default 8). |