Title100/100
Render chart
The title clearly communicates the tool’s action and subject. Keep it concise.
Description89/100
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.
The description explains the capability, when to use it, and what to expect.
Inputs90/100
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
acknowledgeWarnings
Set true only after the user explicitly approves every warning returned for this exact request
Clear enough to supply this argument.
request
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.
Clear enough to supply this argument.
sharedTheme
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.
Remove validation rules already expressed in this field’s schema; describe its meaning and usage instead.
Annotations75/100
Declare idempotentHint based on the tool’s actual behavior.
{
"title": "Render chart",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": false
}Output schema67/100
Describe the returned fields so an agent can interpret the result.
View output schema
{
"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"
}
}
}
]
}
}
}