Charts by Szum is an MCP server published by io.szum, hosted at szum.io. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 16 tools, including render_chart, save_chart, list_charts, get_chart, get_chart_document.
Create, inspect, manage, and render charts and data visualizations as SVG/PNG or interactive embeds.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Use this when the user wants to preview or generate a chart. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Stores a 1 hour preview and returns public image URLs. Authenticated previews use the account's render allowance, and each image produced from a returned URL is another render. Anonymous previews are complimentary; their images use the anonymous image allowance.
| Parameter | Type | Description |
|---|---|---|
| request * | string | Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on … |
None yet. Changes appear after a server's second daily check.
Inferred from the host name and headers: what a server runs on, not who runs it.
| sharedTheme | string | Name of a shared theme from list_themes' workspaceThemes. The chart uses that theme and stays linked to it, so later edits to the theme reach the chart. When omitted and the document sets neither theme nor themeOverrides, the workspace's default theme applies, if it has one. |
| acknowledgeWarnings | boolean | Set true only after the user explicitly approves every warning returned for this exact request |
{
"name": "render_chart",
"title": "Render chart",
"description": "Use this when the user wants to preview or generate a chart. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Stores a 1 hour preview and returns public image URLs. Authenticated previews use the account's render allowance, and each image produced from a returned URL is another render. Anonymous previews are complimentary; their images use the anonymous image allowance.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"request"
],
"properties": {
"request": {
"type": "string",
"description": "Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on an explicit UTC scale. Column and bar charts with long, wide, or count values, and all area charts, use linear value scales. Their inferred domains include zero, while an explicit domain excluding zero produces a warning. Base-10 log roles and explicit log domains require positive finite values; use line, scatter, or ranged columns and bars."
},
"sharedTheme": {
"type": "string",
"minLength": 1,
"description": "Name of a shared theme from list_themes' workspaceThemes. The chart uses that theme and stays linked to it, so later edits to the theme reach the chart. When omitted and the document sets neither theme nor themeOverrides, the workspace's default theme applies, if it has one."
},
"acknowledgeWarnings": {
"type": "boolean",
"description": "Set true only after the user explicitly approves every warning returned for this exact request"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"szumSchema0": {
"type": "object",
"description": "Complete current ChartDocument. get_schema returns its JSON Schema."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"view",
"title",
"imageUrl",
"format",
"mimeType",
"expiresAt",
"validation",
"durableInput"
],
"properties": {
"view": {
"type": "string",
"examples": [
"chart-preview"
]
},
"title": {
"type": "string"
},
"format": {
"type": "string",
"examples": [
"svg",
"png"
]
},
"imageUrl": {
"type": "string"
},
"mimeType": {
"type": "string",
"examples": [
"image/svg+xml",
"image/png"
]
},
"expiresAt": {
"type": "string"
},
"validation": {
"type": "object",
"required": [
"valid",
"diagnostics"
],
"properties": {
"valid": {
"type": "boolean"
},
"diagnostics": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_structure"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"maxBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"actualBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_preference"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"role": {
"type": "string"
},
"type": {
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "string"
}
},
"value": {
"type": [
"string",
"number"
]
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"format": {
"type": "string"
},
"reason": {
"type": "string"
},
"syntax": {
"type": "string",
"examples": [
"percent",
"semantic"
]
},
"maximum": {
"type": "number"
},
"minimum": {
"type": "number"
},
"property": {
"type": "string"
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"minimumItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"requiredItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_data"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"field": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"expected": {
"type": "array",
"items": {
"type": "string"
}
},
"omission": {
"type": "string",
"examples": [
"incompatible",
"missing"
]
},
"rowCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"valueField": {
"type": "string"
},
"aggregation": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"categoryField": {
"type": "string"
},
"affectedCategories": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_scale"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"type": {
"type": "string"
},
"domain": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"maxItems": 2,
"minItems": 2
},
"reason": {
"type": "string"
},
"markTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"expectedItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"affectedValues": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"supportedTypes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"duplicate_identity"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"seriesField": {
"type": "string"
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"categoryField": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"unresolved_decoration"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"value": {
"type": "string"
},
"reason": {
"type": "string"
},
"statistic": {
"type": "string"
},
"referenceIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"annotationIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"render_adjustment"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"reason": {
"type": "string"
},
"element": {
"type": "string"
},
"labelRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"affectedCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"workspace_rule"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"allowedThemes": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"value"
],
"properties": {
"id": {
"anyOf": [
{
"type": "object",
"required": [
"kind",
"theme"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"built-in"
]
},
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
}
},
{
"type": "object",
"required": [
"kind",
"themeId"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"shared"
]
},
"themeId": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string"
}
}
}
]
},
"name": {
"type": "string",
"minLength": 1
},
"value": {
"type": "object",
"required": [
"theme"
],
"properties": {
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
},
"additionalProperties": {}
}
}
}
},
"allowedChartTypes": {
"type": "array",
"items": {
"type": "string",
"examples": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
]
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string"
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string"
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
}
]
}
},
"compatibility": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"exact",
"normalized"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"classification": {
"type": "string",
"examples": [
"lossy"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes",
"unsupportedCode"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"unsupported"
]
},
"unsupportedCode": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"classification"
],
"properties": {
"classification": {
"type": "string"
}
}
}
]
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
}
},
"classification": {
"type": "string",
"pattern": "^(?!(?:exact|lossy|normalized|unsupported)$)"
},
"unsupportedCode": {
"type": "string"
}
}
}
]
},
"suggestedDocument": {
"$ref": "#/$defs/szumSchema0"
}
}
},
"durableInput": {
"anyOf": [
{
"type": "object",
"required": [
"status",
"document"
],
"properties": {
"status": {
"type": "string",
"examples": [
"ready"
]
},
"document": {
"$ref": "#/$defs/szumSchema0"
},
"sharedTheme": {
"type": "string",
"description": "Shared theme to pass to save_chart with this document"
}
}
},
{
"type": "object",
"required": [
"status",
"lossCodes"
],
"properties": {
"status": {
"type": "string",
"examples": [
"loss_acceptance_required"
]
},
"lossCodes": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
}
},
{
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"type": "string"
}
}
}
]
}
}
},
"annotations": {
"title": "Render chart",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}
}Use this when the user wants to permanently save and publish a Szum chart document. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Supply one idempotencyKey per intended chart and reuse it for retries. Returns permanent public Image and Embed URLs plus Edit and Studio links; requires authentication and saved-chart storage.
| Parameter | Type | Description |
|---|---|---|
| document * | string | Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on … |
| sharedTheme | string | Name of a shared theme from list_themes' workspaceThemes. The chart uses that theme and stays linked to it, so later edits to the theme reach the chart. When omitted and the document sets neither theme nor themeOverrides, the workspace's default theme applies, if it has one. |
| acceptLosses | array | Compatibility loss codes explicitly accepted by the user for this save |
| idempotencyKey | string | Stable retry key of at most 255 characters; reuse only for the exact same document |
| acknowledgeWarnings | boolean | Set true only after the user explicitly approves every warning returned for this exact document |
{
"name": "save_chart",
"title": "Save chart",
"description": "Use this when the user wants to permanently save and publish a Szum chart document. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Supply one idempotencyKey per intended chart and reuse it for retries. Returns permanent public Image and Embed URLs plus Edit and Studio links; requires authentication and saved-chart storage.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"document"
],
"properties": {
"document": {
"type": "string",
"description": "Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on an explicit UTC scale. Column and bar charts with long, wide, or count values, and all area charts, use linear value scales. Their inferred domains include zero, while an explicit domain excluding zero produces a warning. Base-10 log roles and explicit log domains require positive finite values; use line, scatter, or ranged columns and bars."
},
"sharedTheme": {
"type": "string",
"minLength": 1,
"description": "Name of a shared theme from list_themes' workspaceThemes. The chart uses that theme and stays linked to it, so later edits to the theme reach the chart. When omitted and the document sets neither theme nor themeOverrides, the workspace's default theme applies, if it has one."
},
"acceptLosses": {
"type": "array",
"items": {
"type": "string"
},
"description": "Compatibility loss codes explicitly accepted by the user for this save"
},
"idempotencyKey": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Stable retry key of at most 255 characters; reuse only for the exact same document"
},
"acknowledgeWarnings": {
"type": "boolean",
"description": "Set true only after the user explicitly approves every warning returned for this exact document"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"view",
"id",
"title",
"imageUrl",
"embedUrl",
"editUrl",
"manageUrl",
"format",
"mimeType",
"validation",
"workspace",
"versionNumber"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"view": {
"type": "string",
"examples": [
"saved-chart"
]
},
"title": {
"type": "string"
},
"format": {
"type": "string",
"examples": [
"svg",
"png"
]
},
"editUrl": {
"type": "string"
},
"embedUrl": {
"type": "string"
},
"imageUrl": {
"type": "string"
},
"mimeType": {
"type": "string",
"examples": [
"image/svg+xml",
"image/png"
]
},
"manageUrl": {
"type": "string"
},
"workspace": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Personal, or the name of the Team workspace"
}
},
"description": "Workspace this connection saves and lists charts in"
},
"validation": {
"type": "object",
"required": [
"valid",
"diagnostics"
],
"properties": {
"valid": {
"type": "boolean"
},
"diagnostics": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_structure"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"maxBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"actualBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_preference"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"role": {
"type": "string"
},
"type": {
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "string"
}
},
"value": {
"type": [
"string",
"number"
]
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"format": {
"type": "string"
},
"reason": {
"type": "string"
},
"syntax": {
"type": "string",
"examples": [
"percent",
"semantic"
]
},
"maximum": {
"type": "number"
},
"minimum": {
"type": "number"
},
"property": {
"type": "string"
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"minimumItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"requiredItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_data"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"field": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"expected": {
"type": "array",
"items": {
"type": "string"
}
},
"omission": {
"type": "string",
"examples": [
"incompatible",
"missing"
]
},
"rowCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"valueField": {
"type": "string"
},
"aggregation": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"categoryField": {
"type": "string"
},
"affectedCategories": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_scale"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"type": {
"type": "string"
},
"domain": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"maxItems": 2,
"minItems": 2
},
"reason": {
"type": "string"
},
"markTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"expectedItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"affectedValues": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"supportedTypes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"duplicate_identity"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"seriesField": {
"type": "string"
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"categoryField": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"unresolved_decoration"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"value": {
"type": "string"
},
"reason": {
"type": "string"
},
"statistic": {
"type": "string"
},
"referenceIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"annotationIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"render_adjustment"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"reason": {
"type": "string"
},
"element": {
"type": "string"
},
"labelRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"affectedCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"workspace_rule"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"allowedThemes": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"value"
],
"properties": {
"id": {
"anyOf": [
{
"type": "object",
"required": [
"kind",
"theme"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"built-in"
]
},
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
}
},
{
"type": "object",
"required": [
"kind",
"themeId"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"shared"
]
},
"themeId": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string"
}
}
}
]
},
"name": {
"type": "string",
"minLength": 1
},
"value": {
"type": "object",
"required": [
"theme"
],
"properties": {
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
},
"additionalProperties": {}
}
}
}
},
"allowedChartTypes": {
"type": "array",
"items": {
"type": "string",
"examples": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
]
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string"
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string"
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
}
]
}
},
"compatibility": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"exact",
"normalized"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"classification": {
"type": "string",
"examples": [
"lossy"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes",
"unsupportedCode"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"unsupported"
]
},
"unsupportedCode": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"classification"
],
"properties": {
"classification": {
"type": "string"
}
}
}
]
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
}
},
"classification": {
"type": "string",
"pattern": "^(?!(?:exact|lossy|normalized|unsupported)$)"
},
"unsupportedCode": {
"type": "string"
}
}
}
]
},
"suggestedDocument": {
"type": "object",
"description": "Complete current ChartDocument. get_schema returns its JSON Schema."
}
}
},
"versionNumber": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Number of the version the chart publishes now; list_chart_versions lists the earlier ones and restore_chart_version publishes one again",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Save chart",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}
}Use this when the user wants to find charts in their saved library. Returns paginated metadata and URLs, not chart documents; requires authentication. Draft-only editor charts have publishedAt null, hasDraft true, and sizeBytes 0 because sizeBytes measures only the stored published document, not draft storage.
| Parameter | Type | Description |
|---|---|---|
| q | string | Case-insensitive title substring search; trimmed and limited to 100 characters |
| sort | string | Sort by creation time (default), update time, or title A-Z |
| limit | integer | Page size; defaults to 100 and has a maximum of 1000 |
| author | string | An authorId from a listed chart, or "former" for charts whose author has left the workspace; omit to list every author |
| cursor | string | Opaque nextCursor from the previous page |
| source | any | Filter by one or more chart sources; omit to list all |
{
"name": "list_charts",
"title": "List charts",
"description": "Use this when the user wants to find charts in their saved library. Returns paginated metadata and URLs, not chart documents; requires authentication. Draft-only editor charts have publishedAt null, hasDraft true, and sizeBytes 0 because sizeBytes measures only the stored published document, not draft storage.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"q": {
"type": "string",
"description": "Case-insensitive title substring search; trimmed and limited to 100 characters"
},
"sort": {
"enum": [
"updated",
"created",
"title"
],
"type": "string",
"description": "Sort by creation time (default), update time, or title A-Z"
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Page size; defaults to 100 and has a maximum of 1000"
},
"author": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "An authorId from a listed chart, or \"former\" for charts whose author has left the workspace; omit to list every author"
},
"cursor": {
"type": "string",
"description": "Opaque nextCursor from the previous page"
},
"source": {
"anyOf": [
{
"enum": [
"api",
"figma",
"app",
"mcp"
],
"type": "string"
},
{
"type": "array",
"items": {
"enum": [
"api",
"figma",
"app",
"mcp"
],
"type": "string"
},
"minItems": 1
}
],
"description": "Filter by one or more chart sources; omit to list all"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"items",
"nextCursor",
"workspace"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"source",
"title",
"createdAt",
"updatedAt",
"sizeBytes",
"publishedAt",
"imageUrl",
"embedUrl",
"documentUrl",
"hasDraft",
"authorId",
"authorName"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"title": {
"type": "string",
"description": "Saved chart title"
},
"source": {
"type": "string",
"description": "Chart origin; an open set of string values"
},
"authorId": {
"type": [
"string",
"null"
],
"description": "User id of the person who made the chart, for the author filter; null when unknown"
},
"embedUrl": {
"type": "string",
"description": "Interactive-embed URL"
},
"hasDraft": {
"type": "boolean",
"description": "Whether an unpublished editor document exists; with sizeBytes 0 the chart is draft-only, otherwise it has unpublished edits alongside a stored published document"
},
"imageUrl": {
"type": "string",
"description": "Rendered-image URL"
},
"createdAt": {
"type": "string",
"description": "ISO-8601 creation timestamp"
},
"sizeBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 last-update timestamp"
},
"authorName": {
"type": "string",
"description": "Name of the person who made the chart, or Former member when they no longer belong to the workspace"
},
"documentUrl": {
"type": "string",
"description": "Owner-only chart-document endpoint"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when public URLs are dark"
}
}
}
},
"total": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact match count, present for title searches or when explicitly requested"
},
"workspace": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Personal, or the name of the Team workspace"
}
},
"description": "Workspace this connection saves and lists charts in"
},
"nextCursor": {
"type": [
"string",
"null"
],
"description": "Opaque cursor for the next page, or null on the last page"
}
}
},
"annotations": {
"title": "List charts",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when the user identifies a saved chart by id and wants to view it or retrieve its metadata and URLs. Displays the published chart when available and does not return its document; requires authentication.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
{
"name": "get_chart",
"title": "Get chart",
"description": "Use this when the user identifies a saved chart by id and wants to view it or retrieve its metadata and URLs. Displays the published chart when available and does not return its document; requires authentication.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"view",
"id",
"source",
"title",
"createdAt",
"updatedAt",
"sizeBytes",
"publishedAt",
"imageUrl",
"embedUrl",
"documentUrl",
"editUrl",
"manageUrl"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"view": {
"type": "string",
"examples": [
"saved-chart"
]
},
"title": {
"type": "string",
"description": "Saved chart title"
},
"source": {
"type": "string",
"description": "Chart origin; an open set of string values"
},
"editUrl": {
"type": "string"
},
"embedUrl": {
"type": "string",
"description": "Interactive-embed URL"
},
"imageUrl": {
"type": "string",
"description": "Rendered-image URL"
},
"createdAt": {
"type": "string",
"description": "ISO-8601 creation timestamp"
},
"manageUrl": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 last-update timestamp"
},
"documentUrl": {
"type": "string",
"description": "Owner-only chart-document endpoint"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when public URLs are dark"
}
}
},
"annotations": {
"title": "Get chart",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when the user identifies a saved chart by id and needs its complete published Szum document for inspection or reuse, or an earlier version's document from list_chart_versions. Does not return a newer editor draft; requires authentication.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
| version | integer | Version number from list_chart_versions; omit for the published document |
{
"name": "get_chart_document",
"title": "Get chart document",
"description": "Use this when the user identifies a saved chart by id and needs its complete published Szum document for inspection or reuse, or an earlier version's document from list_chart_versions. Does not return a newer editor draft; requires authentication.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"version": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Version number from list_chart_versions; omit for the published document",
"exclusiveMinimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Complete current ChartDocument. get_schema returns its JSON Schema."
},
"annotations": {
"title": "Get chart document",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when the user wants to see a saved chart's earlier publications, find one to read with get_chart_document, or pick one to restore with restore_chart_version. Returns versions newest first with who published each, from where and what changed; requires authentication.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
| limit | integer | Page size; defaults to 100 and has a maximum of 1000 |
| named | boolean | List only versions that were given a name |
| cursor | string | Opaque nextCursor from the previous page |
{
"name": "list_chart_versions",
"title": "List chart versions",
"description": "Use this when the user wants to see a saved chart's earlier publications, find one to read with get_chart_document, or pick one to restore with restore_chart_version. Returns versions newest first with who published each, from where and what changed; requires authentication.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"description": "Page size; defaults to 100 and has a maximum of 1000"
},
"named": {
"type": "boolean",
"description": "List only versions that were given a name"
},
"cursor": {
"type": "string",
"description": "Opaque nextCursor from the previous page"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"currentVersionNumber",
"items",
"nextCursor"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"number",
"kind",
"publishedAt",
"publishedByName",
"client",
"apiKeyName",
"mcpClientName",
"changedSections",
"title",
"label",
"restoredFromVersionNumber",
"removedReason",
"isCurrent"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"create",
"publish",
"restore",
"move",
"imported"
],
"description": "How the version was made: create, publish, restore, move between workspaces, or imported from before version history"
},
"label": {
"type": [
"string",
"null"
],
"description": "Name given to the version"
},
"title": {
"type": "string",
"description": "Chart title recorded with the version"
},
"client": {
"anyOf": [
{
"type": "string",
"examples": [
"api",
"figma",
"app",
"mcp"
]
},
{
"type": "null"
}
],
"description": "Where it was published from, when known"
},
"number": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"isCurrent": {
"type": "boolean"
},
"apiKeyName": {
"type": [
"string",
"null"
],
"description": "Name of the API key that published it"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when unknown"
},
"mcpClientName": {
"type": [
"string",
"null"
],
"description": "Name of the MCP client that published it"
},
"removedReason": {
"anyOf": [
{
"type": "string",
"examples": [
"pruned",
"deleted"
]
},
{
"type": "null"
}
],
"description": "Why its content was removed: pruned to stay within storage, or deleted; a removed version can't be read or restored"
},
"changedSections": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"examples": [
"data",
"design",
"size",
"output",
"theme",
"title"
]
}
},
{
"type": "null"
}
],
"description": "What changed from the version before it; null when it can't be compared"
},
"publishedByName": {
"type": [
"string",
"null"
],
"description": "Name of the person who published it, when known"
},
"restoredFromVersionNumber": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Version this one restored, for a restore"
}
}
}
},
"nextCursor": {
"type": [
"string",
"null"
],
"description": "Opaque cursor for older versions, or null on the last page"
},
"currentVersionNumber": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"description": "Number of the version the chart publishes now, or null for a chart that was never published"
}
}
},
"annotations": {
"title": "List chart versions",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when the Szum chart App needs to restore a rendered preview as its current transient or saved view. It is read-only, owner-scoped when authenticated, and hidden from the model.
| Parameter | Type | Description |
|---|---|---|
| previewId * | string | Opaque 16-character chart-preview id |
{
"name": "get_preview_state",
"title": "Get chart preview state",
"description": "Use this when the Szum chart App needs to restore a rendered preview as its current transient or saved view. It is read-only, owner-scoped when authenticated, and hidden from the model.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"previewId"
],
"properties": {
"previewId": {
"type": "string",
"pattern": "^[0-9a-f]{16}$",
"description": "Opaque 16-character chart-preview id"
}
}
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"type": "object",
"required": [
"status",
"chart"
],
"properties": {
"chart": {
"type": "object",
"required": [
"view",
"id",
"source",
"title",
"createdAt",
"updatedAt",
"sizeBytes",
"publishedAt",
"imageUrl",
"embedUrl",
"documentUrl",
"editUrl",
"manageUrl"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"view": {
"type": "string",
"examples": [
"saved-chart"
]
},
"title": {
"type": "string",
"description": "Saved chart title"
},
"source": {
"type": "string",
"description": "Chart origin; an open set of string values"
},
"editUrl": {
"type": "string"
},
"embedUrl": {
"type": "string",
"description": "Interactive-embed URL"
},
"imageUrl": {
"type": "string",
"description": "Rendered-image URL"
},
"createdAt": {
"type": "string",
"description": "ISO-8601 creation timestamp"
},
"manageUrl": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 last-update timestamp"
},
"documentUrl": {
"type": "string",
"description": "Owner-only chart-document endpoint"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when public URLs are dark"
}
}
},
"status": {
"type": "string",
"examples": [
"saved"
]
}
}
},
{
"type": "object",
"required": [
"status"
],
"properties": {
"chart": {
"not": {}
},
"status": {
"type": "string",
"examples": [
"transient"
]
}
}
},
{
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"type": "string"
}
}
}
],
"$schema": "http://json-schema.org/draft-07/schema#"
},
"annotations": {
"title": "Get chart preview state",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Use this when the user wants to replace and publish a saved chart's document while keeping its id and URLs. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Refuses charts with unpublished editor changes; requires authentication and saved-chart storage.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
| title | string | Library title; omit to keep a renamed title, while a title that still follows the document follows the new one; an empty title follows the document |
| document * | string | Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on … |
| sharedTheme | any | Name of a shared theme from list_themes' workspaceThemes. The chart uses that theme and stays linked to it, so later edits to the theme reach the chart. When omitted, the chart keeps its current link unless the document sets a different theme of its own. Pass null to keep the document's own theme an… |
| acceptLosses | array | Compatibility loss codes explicitly accepted by the user for this update |
| acknowledgeWarnings | boolean | Set true only after the user explicitly approves every warning returned for this exact document |
{
"name": "update_chart",
"title": "Update chart",
"description": "Use this when the user wants to replace and publish a saved chart's document while keeping its id and URLs. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Refuses charts with unpublished editor changes; requires authentication and saved-chart storage.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id",
"document"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"title": {
"type": "string",
"description": "Library title; omit to keep a renamed title, while a title that still follows the document follows the new one; an empty title follows the document"
},
"document": {
"type": "string",
"description": "Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on an explicit UTC scale. Column and bar charts with long, wide, or count values, and all area charts, use linear value scales. Their inferred domains include zero, while an explicit domain excluding zero produces a warning. Base-10 log roles and explicit log domains require positive finite values; use line, scatter, or ranged columns and bars."
},
"sharedTheme": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"description": "Name of one of the workspace's shared themes"
},
{
"type": "null"
}
],
"description": "Name of a shared theme from list_themes' workspaceThemes. The chart uses that theme and stays linked to it, so later edits to the theme reach the chart. When omitted, the chart keeps its current link unless the document sets a different theme of its own. Pass null to keep the document's own theme and end the link."
},
"acceptLosses": {
"type": "array",
"items": {
"type": "string"
},
"description": "Compatibility loss codes explicitly accepted by the user for this update"
},
"acknowledgeWarnings": {
"type": "boolean",
"description": "Set true only after the user explicitly approves every warning returned for this exact document"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"view",
"id",
"source",
"title",
"createdAt",
"updatedAt",
"sizeBytes",
"publishedAt",
"imageUrl",
"embedUrl",
"documentUrl",
"editUrl",
"manageUrl",
"validation",
"versionNumber"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"view": {
"type": "string",
"examples": [
"saved-chart"
]
},
"title": {
"type": "string",
"description": "Saved chart title"
},
"source": {
"type": "string",
"description": "Chart origin; an open set of string values"
},
"editUrl": {
"type": "string"
},
"embedUrl": {
"type": "string",
"description": "Interactive-embed URL"
},
"imageUrl": {
"type": "string",
"description": "Rendered-image URL"
},
"createdAt": {
"type": "string",
"description": "ISO-8601 creation timestamp"
},
"manageUrl": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 last-update timestamp"
},
"validation": {
"type": "object",
"required": [
"valid",
"diagnostics"
],
"properties": {
"valid": {
"type": "boolean"
},
"diagnostics": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_structure"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"maxBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"actualBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_preference"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"role": {
"type": "string"
},
"type": {
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "string"
}
},
"value": {
"type": [
"string",
"number"
]
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"format": {
"type": "string"
},
"reason": {
"type": "string"
},
"syntax": {
"type": "string",
"examples": [
"percent",
"semantic"
]
},
"maximum": {
"type": "number"
},
"minimum": {
"type": "number"
},
"property": {
"type": "string"
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"minimumItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"requiredItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_data"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"field": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"expected": {
"type": "array",
"items": {
"type": "string"
}
},
"omission": {
"type": "string",
"examples": [
"incompatible",
"missing"
]
},
"rowCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"valueField": {
"type": "string"
},
"aggregation": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"categoryField": {
"type": "string"
},
"affectedCategories": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_scale"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"type": {
"type": "string"
},
"domain": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"maxItems": 2,
"minItems": 2
},
"reason": {
"type": "string"
},
"markTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"expectedItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"affectedValues": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"supportedTypes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"duplicate_identity"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"seriesField": {
"type": "string"
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"categoryField": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"unresolved_decoration"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"value": {
"type": "string"
},
"reason": {
"type": "string"
},
"statistic": {
"type": "string"
},
"referenceIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"annotationIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"render_adjustment"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"reason": {
"type": "string"
},
"element": {
"type": "string"
},
"labelRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"affectedCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"workspace_rule"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"allowedThemes": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"value"
],
"properties": {
"id": {
"anyOf": [
{
"type": "object",
"required": [
"kind",
"theme"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"built-in"
]
},
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
}
},
{
"type": "object",
"required": [
"kind",
"themeId"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"shared"
]
},
"themeId": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string"
}
}
}
]
},
"name": {
"type": "string",
"minLength": 1
},
"value": {
"type": "object",
"required": [
"theme"
],
"properties": {
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
},
"additionalProperties": {}
}
}
}
},
"allowedChartTypes": {
"type": "array",
"items": {
"type": "string",
"examples": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
]
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string"
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string"
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
}
]
}
},
"compatibility": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"exact",
"normalized"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"classification": {
"type": "string",
"examples": [
"lossy"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes",
"unsupportedCode"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"unsupported"
]
},
"unsupportedCode": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"classification"
],
"properties": {
"classification": {
"type": "string"
}
}
}
]
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
}
},
"classification": {
"type": "string",
"pattern": "^(?!(?:exact|lossy|normalized|unsupported)$)"
},
"unsupportedCode": {
"type": "string"
}
}
}
]
},
"suggestedDocument": {
"type": "object",
"description": "Complete current ChartDocument. get_schema returns its JSON Schema."
}
}
},
"documentUrl": {
"type": "string",
"description": "Owner-only chart-document endpoint"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when public URLs are dark"
},
"versionNumber": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Number of the version the chart publishes now; list_chart_versions lists the earlier ones and restore_chart_version publishes one again",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Update chart",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": true
}
}Use this when the user wants a saved chart to go back to an earlier version from list_chart_versions. Publishes that version's document again as a new version, keeping the chart's id and URLs, so the version it replaces stays restorable. Refuses charts with unpublished editor changes; requires authentication.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
| version * | integer | Version number from list_chart_versions |
| acceptLosses | array | Compatibility loss codes explicitly accepted by the user for restoring an older document |
{
"name": "restore_chart_version",
"title": "Restore chart version",
"description": "Use this when the user wants a saved chart to go back to an earlier version from list_chart_versions. Publishes that version's document again as a new version, keeping the chart's id and URLs, so the version it replaces stays restorable. Refuses charts with unpublished editor changes; requires authentication.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id",
"version"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"version": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Version number from list_chart_versions",
"exclusiveMinimum": 0
},
"acceptLosses": {
"type": "array",
"items": {
"type": "string"
},
"description": "Compatibility loss codes explicitly accepted by the user for restoring an older document"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"view",
"id",
"source",
"title",
"createdAt",
"updatedAt",
"sizeBytes",
"publishedAt",
"imageUrl",
"embedUrl",
"documentUrl",
"editUrl",
"manageUrl",
"versionNumber"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"view": {
"type": "string",
"examples": [
"saved-chart"
]
},
"title": {
"type": "string",
"description": "Saved chart title"
},
"source": {
"type": "string",
"description": "Chart origin; an open set of string values"
},
"editUrl": {
"type": "string"
},
"embedUrl": {
"type": "string",
"description": "Interactive-embed URL"
},
"imageUrl": {
"type": "string",
"description": "Rendered-image URL"
},
"createdAt": {
"type": "string",
"description": "ISO-8601 creation timestamp"
},
"manageUrl": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 last-update timestamp"
},
"documentUrl": {
"type": "string",
"description": "Owner-only chart-document endpoint"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when public URLs are dark"
},
"versionNumber": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Number of the version the chart publishes now; list_chart_versions lists the earlier ones and restore_chart_version publishes one again",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Restore chart version",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": true
}
}Use this when the user wants to change a saved chart's library title without changing its document, publication state, or public URLs; requires authentication.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
| title * | string | New saved-chart title; trimmed and limited to 200 characters |
{
"name": "rename_chart",
"title": "Rename chart",
"description": "Use this when the user wants to change a saved chart's library title without changing its document, publication state, or public URLs; requires authentication.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id",
"title"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"title": {
"type": "string",
"description": "New saved-chart title; trimmed and limited to 200 characters"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"view",
"id",
"source",
"title",
"createdAt",
"updatedAt",
"sizeBytes",
"publishedAt",
"imageUrl",
"embedUrl",
"documentUrl",
"editUrl",
"manageUrl"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
},
"view": {
"type": "string",
"examples": [
"saved-chart"
]
},
"title": {
"type": "string",
"description": "Saved chart title"
},
"source": {
"type": "string",
"description": "Chart origin; an open set of string values"
},
"editUrl": {
"type": "string"
},
"embedUrl": {
"type": "string",
"description": "Interactive-embed URL"
},
"imageUrl": {
"type": "string",
"description": "Rendered-image URL"
},
"createdAt": {
"type": "string",
"description": "ISO-8601 creation timestamp"
},
"manageUrl": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 last-update timestamp"
},
"documentUrl": {
"type": "string",
"description": "Owner-only chart-document endpoint"
},
"publishedAt": {
"type": [
"string",
"null"
],
"description": "ISO-8601 publish timestamp, or null when public URLs are dark"
}
}
},
"annotations": {
"title": "Rename chart",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when the user explicitly wants to permanently delete one saved chart. Deletion cannot be undone, and retrying an already completed deletion succeeds; requires authentication.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Opaque 32-character saved-chart id |
{
"name": "delete_chart",
"title": "Delete chart",
"description": "Use this when the user explicitly wants to permanently delete one saved chart. Deletion cannot be undone, and retrying an already completed deletion succeeds; requires authentication.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "Opaque 32-character saved-chart id"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"deleted"
],
"properties": {
"deleted": {
"type": "boolean",
"const": true
}
}
},
"annotations": {
"title": "Delete chart",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}Use this when choosing a visual theme for a chart. Returns every built-in theme with guidance on where each works best and, when signed in, the workspace's shared themes.
No parameters.
{
"name": "list_themes",
"title": "List themes",
"description": "Use this when choosing a visual theme for a chart. Returns every built-in theme with guidance on where each works best and, when signed in, the workspace's shared themes.",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"themes"
],
"properties": {
"themes": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description"
],
"properties": {
"name": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
},
"isDefault": {
"type": "boolean",
"description": "When signed in, whether new charts in the workspace start with it"
},
"description": {
"type": "string"
}
}
}
},
"workspaceThemes": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"description",
"isDefault"
],
"properties": {
"name": {
"type": "string"
},
"isDefault": {
"type": "boolean",
"description": "Whether new charts in the workspace start with it"
},
"description": {
"type": "string"
}
}
},
"description": "The signed-in workspace's shared themes. Pass a name as sharedTheme to render_chart, save_chart, or update_chart."
}
}
},
"annotations": {
"title": "List themes",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when a chart request or document will be rendered, saved, or updated. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Read-only, free, and fast.
| Parameter | Type | Description |
|---|---|---|
| chart * | string | Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on … |
{
"name": "validate_chart",
"title": "Validate chart input",
"description": "Use this when a chart request or document will be rendered, saved, or updated. Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Read-only, free, and fast.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"chart"
],
"properties": {
"chart": {
"type": "string",
"description": "Complete current ChartDocument JSON with version, config, and data, plus optional presentation, size, and output. Use the same document for validation, rendering, and saving; version must match config.version. Semantic field roles must match row keys. Chronological annual values use YYYY strings on an explicit UTC scale. Column and bar charts with long, wide, or count values, and all area charts, use linear value scales. Their inferred domains include zero, while an explicit domain excluding zero produces a warning. Base-10 log roles and explicit log domains require positive finite values; use line, scatter, or ranged columns and bars."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"valid",
"diagnostics"
],
"properties": {
"valid": {
"type": "boolean"
},
"diagnostics": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_structure"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"maxBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"actualBytes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"invalid_preference"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"role": {
"type": "string"
},
"type": {
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "string"
}
},
"value": {
"type": [
"string",
"number"
]
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"format": {
"type": "string"
},
"reason": {
"type": "string"
},
"syntax": {
"type": "string",
"examples": [
"percent",
"semantic"
]
},
"maximum": {
"type": "number"
},
"minimum": {
"type": "number"
},
"property": {
"type": "string"
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"minimumItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"requiredItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_data"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"field": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"expected": {
"type": "array",
"items": {
"type": "string"
}
},
"omission": {
"type": "string",
"examples": [
"incompatible",
"missing"
]
},
"rowCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"valueField": {
"type": "string"
},
"aggregation": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"categoryField": {
"type": "string"
},
"affectedCategories": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"incompatible_scale"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"type": {
"type": "string"
},
"domain": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"maxItems": 2,
"minItems": 2
},
"reason": {
"type": "string"
},
"markTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"actualItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"sampleValues": {
"type": "array",
"items": {
"type": "string"
}
},
"expectedItems": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"affectedValues": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"supportedTypes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"duplicate_identity"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"field": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"reason": {
"type": "string"
},
"samplePaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
},
"seriesField": {
"type": "string"
},
"affectedRows": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"categoryField": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"unresolved_decoration"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"value": {
"type": "string"
},
"reason": {
"type": "string"
},
"statistic": {
"type": "string"
},
"referenceIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"annotationIndex": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"render_adjustment"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"axis": {
"type": "string",
"examples": [
"x",
"y"
]
},
"reason": {
"type": "string"
},
"element": {
"type": "string"
},
"labelRoles": {
"type": "array",
"items": {
"type": "string"
}
},
"affectedCount": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string",
"examples": [
"workspace_rule"
]
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
},
"allowedThemes": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"value"
],
"properties": {
"id": {
"anyOf": [
{
"type": "object",
"required": [
"kind",
"theme"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"built-in"
]
},
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
}
},
{
"type": "object",
"required": [
"kind",
"themeId"
],
"properties": {
"kind": {
"type": "string",
"examples": [
"shared"
]
},
"themeId": {
"type": "string",
"minLength": 1
}
}
},
{
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string"
}
}
}
]
},
"name": {
"type": "string",
"minLength": 1
},
"value": {
"type": "object",
"required": [
"theme"
],
"properties": {
"theme": {
"type": "string",
"examples": [
"editorial",
"clean",
"noir",
"loud",
"soft",
"technical"
]
}
},
"additionalProperties": {}
}
}
}
},
"allowedChartTypes": {
"type": "array",
"items": {
"type": "string",
"examples": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
]
}
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string",
"examples": [
"error",
"warning",
"suggestion"
]
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
},
{
"type": "object",
"required": [
"severity",
"path",
"message",
"code",
"details"
],
"properties": {
"code": {
"type": "string"
},
"path": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
},
"details": {
"type": "object",
"required": [
"reason"
],
"properties": {
"reason": {
"type": "string"
}
},
"additionalProperties": {}
},
"message": {
"type": "string"
},
"severity": {
"type": "string"
},
"relatedPaths": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:\\/(?:[^~/]|~[01])*)*$"
}
}
},
"additionalProperties": {}
}
]
}
},
"compatibility": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"exact",
"normalized"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"classification": {
"type": "string",
"examples": [
"lossy"
]
}
}
},
{
"type": "object",
"required": [
"classification",
"lossCodes",
"unsupportedCode"
],
"properties": {
"lossCodes": {
"type": "array",
"maxItems": 0,
"minItems": 0
},
"classification": {
"type": "string",
"examples": [
"unsupported"
]
},
"unsupportedCode": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"classification"
],
"properties": {
"classification": {
"type": "string"
}
}
}
]
},
{
"type": "object",
"required": [
"classification",
"lossCodes"
],
"properties": {
"lossCodes": {
"type": "array",
"items": {
"type": "string"
}
},
"classification": {
"type": "string",
"pattern": "^(?!(?:exact|lossy|normalized|unsupported)$)"
},
"unsupportedCode": {
"type": "string"
}
}
}
]
},
"suggestedDocument": {
"type": "object",
"description": "Complete current ChartDocument. get_schema returns its JSON Schema."
}
}
},
"annotations": {
"title": "Validate chart input",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when choosing a chart family. Returns every current chart type with its shared and family-specific fields.
No parameters.
{
"name": "list_chart_types",
"title": "List chart types",
"description": "Use this when choosing a chart family. Returns every current chart type with its shared and family-specific fields.",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"$defs": {
"szumSchema0": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"shared",
"chartTypes"
],
"properties": {
"shared": {
"$ref": "#/$defs/szumSchema0"
},
"chartTypes": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"description",
"fields"
],
"properties": {
"type": {
"type": "string",
"examples": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
]
},
"fields": {
"$ref": "#/$defs/szumSchema0"
},
"description": {
"type": "string"
}
}
}
}
}
},
"annotations": {
"title": "List chart types",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Get complete Szum documents for validation, rendering, or saving, with guidance on when to use each pattern. No filters returns one starter per chart type. Any filter searches the complete catalog; all supplied filters intersect. Most data is illustrative; the Vinyl waterfall cites RIAA reports. Empty matches mean no example satisfies every filter; remove a filter to broaden the search.
| Parameter | Type | Description |
|---|---|---|
| purpose | string | Filter by the primary chart question. Distribution means categorical frequencies, not automatic histogram binning. Range means bounded values, time spans, or uncertainty. |
| features | array | Return examples teaching every selected feature. Annotations explain data; references mark fixed values or statistics; ranges encode start/end values; intervals show lower/upper bounds around scatter observations. |
| chart_type | string | Filter examples by chart type |
| example_id | string | Retrieve an exact ID from an earlier example result. Intersects any other supplied filters. |
{
"name": "get_examples",
"title": "Get example charts",
"description": "Get complete Szum documents for validation, rendering, or saving, with guidance on when to use each pattern. No filters returns one starter per chart type. Any filter searches the complete catalog; all supplied filters intersect. Most data is illustrative; the Vinyl waterfall cites RIAA reports. Empty matches mean no example satisfies every filter; remove a filter to broaden the search.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"purpose": {
"enum": [
"comparison",
"change",
"trend",
"composition",
"relationship",
"distribution",
"range"
],
"type": "string",
"description": "Filter by the primary chart question. Distribution means categorical frequencies, not automatic histogram binning. Range means bounded values, time spans, or uncertainty."
},
"features": {
"type": "array",
"items": {
"enum": [
"labels",
"time_scale",
"stacked",
"categorical_color",
"grouped",
"wide_data",
"totals",
"normalized",
"stable_colors",
"count",
"aggregation",
"signed_values",
"ranges",
"log_scale",
"size_encoding",
"sequential_color",
"diverging_color",
"intervals",
"annotations",
"missing_data",
"references",
"sparkline",
"explicit_order"
],
"type": "string"
},
"minItems": 1,
"description": "Return examples teaching every selected feature. Annotations explain data; references mark fixed values or statistics; ranges encode start/end values; intervals show lower/upper bounds around scatter observations."
},
"chart_type": {
"enum": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
],
"type": "string",
"description": "Filter examples by chart type"
},
"example_id": {
"type": "string",
"minLength": 1,
"description": "Retrieve an exact ID from an earlier example result. Intersects any other supplied filters."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"examples"
],
"properties": {
"examples": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"use_when",
"purpose",
"features",
"title",
"featured",
"request"
],
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"purpose": {
"type": "string",
"examples": [
"comparison",
"change",
"trend",
"composition",
"relationship",
"distribution",
"range"
]
},
"request": {
"type": "object",
"description": "Complete current ChartDocument. get_schema returns its JSON Schema."
},
"featured": {
"type": "boolean"
},
"features": {
"type": "array",
"items": {
"type": "string",
"examples": [
"labels",
"time_scale",
"stacked",
"categorical_color",
"grouped",
"wide_data",
"totals",
"normalized",
"stable_colors",
"count",
"aggregation",
"signed_values",
"ranges",
"log_scale",
"size_encoding",
"sequential_color",
"diverging_color",
"intervals",
"annotations",
"missing_data",
"references",
"sparkline",
"explicit_order"
]
}
},
"use_when": {
"type": "string"
}
}
}
}
}
},
"annotations": {
"title": "Get example charts",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this before authoring an unfamiliar field instead of probing validate_chart for errors. Returns the JSON Schema for the whole Szum document, covering config, data, presentation, size, and output, with every referenced definition included. Pass chart_type to keep only that family's config variants; omitting it returns every family and is much larger. Generated value lists are summarized rather than enumerated; validate_chart remains the authority.
| Parameter | Type | Description |
|---|---|---|
| chart_type | string | Keep only the config variants for this chart type. Pass it whenever the family is known. |
{
"name": "get_schema",
"title": "Get chart document schema",
"description": "Use this before authoring an unfamiliar field instead of probing validate_chart for errors. Returns the JSON Schema for the whole Szum document, covering config, data, presentation, size, and output, with every referenced definition included. Pass chart_type to keep only that family's config variants; omitting it returns every family and is much larger. Generated value lists are summarized rather than enumerated; validate_chart remains the authority.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"chart_type": {
"enum": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
],
"type": "string",
"description": "Keep only the config variants for this chart type. Pass it whenever the family is known."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"version",
"schema"
],
"properties": {
"schema": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"version": {
"type": "string"
},
"chartType": {
"type": "string",
"examples": [
"column",
"bar",
"line",
"area",
"scatter",
"pie",
"waterfall"
]
}
}
},
"annotations": {
"title": "Get chart document schema",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Chart authoring: - Every field-bearing semantic role names a data key: category/values for column, bar, line, area, and pie; x/y for scatter; category/values/stepKind for waterfall. Count values intentionally omit a value field. Series and encoding fields must also exist in the same rows. - Choose one chart type for the question: column/bar for categorical comparison, line/area for ordered trends, scatter for relationships, pie sparingly for part-to-whole, and waterfall for an ordered balance bridge. - A waterfall has one measure and ordered stepKind values: optional first start, one or more signed changes, optional subtotals, and a final total. Subtotal and total amounts are null; the compiler calculates their balances. Do not add series or aggregation. Value labels default outside bars, and focus: "changes" shows large balances as points. - Use long values with an optional series field, wide values with explicit fields, or count values. Aggregation belongs in the value role. - Column and bar support grouped or stacked multi-series arrangements. Area charts stack by default and support normalization. - Prefer native labels and references; use annotations for authored explanatory text. - Axes, color/size legends, and line points accept true for default settings, false to hide, or an options object that enables them. Omission keeps defaults. Stack totals use a boolean. Do not add display to these objects. - Column and bar charts with long, wide, or count values, and all area charts, use linear value scales. Their inferred domains include zero, while an explicit domain excluding zero produces a warning. Base-10 log roles and explicit log domains require positive finite values; use line, scatter, or ranged columns and bars. - For chronological annual trends, use "YYYY" strings, set category.scale to { "type": "utc" }, and use category.format or categoryAxis.format "%Y". Do not invent dates. Categorical years may stay band; UTC numbers are Unix milliseconds. - Set config.locale to the chart's language for non-English text. It controls formatting and regional character forms; use ja for Japanese or ko for Korean, including Han-only labels. - Let themes style by default. Use color domains/ranges and themeOverrides only when they convey intentional meaning. A scalar color may provide light and dark members; a theme palette or continuous range provides one complete array per authored scheme. themeOverrides require a Creator, Pro, or Team plan and are rejected at render, not at validation. - Use the same ChartDocument for validation, rendering, and saving: version, config, data, and optional presentation/size/output. Document version must match config.version. Prefer the smallest clear definition. MCP workflow: - Use get_examples when needed. Use get_schema with chart_type for the exact field contract; never discover a field by probing validate_chart for errors. - The szum://schema and szum://llms-txt resources carry the same schema and the full authoring reference for clients that read MCP resources. - Validate each generated or changed chart input once before rendering, saving, or updating. Do not revalidate unchanged input; a successful render preflights it for later saves or updates. Errors block; warnings require explicit user approval for the exact chart input. Rendering may add layout warnings to the semantic findings before an action proceeds. Suggestions do not block. A suggestedDocument is a complete, validated replacement. Review the proposed changes before using it; validate again only if you modify it. Validation is free and fast. - Preview with render_chart. Offer to save once after the finished preview; do not repeat the offer during revisions. Save only when the user asks. - Follow saved-chart tool scopes. Delete explicitly. Hide internals.
Names, descriptions and schemas were written by the server and are shown as data.