Skip to main content
Glama

Get chart preview state

get_preview_state
Read-onlyIdempotent

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.

Input Schema

NameRequiredDescriptionDefault
previewIdYesOpaque 16-character chart-preview id

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "chart": {
      +        "properties": {
      +          "createdAt": {
      +            "description": "ISO-8601 creation timestamp",
      +            "type": "string"
      +          },
      +          "documentUrl": {
      +            "description": "Owner-only chart-document endpoint",
      +            "type": "string"
      +          },
      +          "editUrl": {
      +            "type": "string"
      +          },
      +          "embedUrl": {
      +            "description": "Interactive-embed URL",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Opaque 32-character saved-chart id",
      +            "pattern": "^[0-9a-f]{32}$",
      +            "type": "string"
      +          },
      +          "imageUrl": {
      +            "description": "Rendered-image URL",
      +            "type": "string"
      +          },
      +          "manageUrl": {
      +            "type": "string"
      +          },
      +          "publishedAt": {
      +            "description": "ISO-8601 publish timestamp, or null when public URLs are dark",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sizeBytes": {
      +            "description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "source": {
      +            "description": "Chart origin; an open set of string values",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Saved chart title",
      +            "type": "string"
      +          },
      +          "updatedAt": {
      +            "description": "ISO-8601 last-update timestamp",
      +            "type": "string"
      +          },
      +          "view": {
      +            "examples": [
      +              "saved-chart"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "view",
      +          "id",
      +          "source",
      +          "title",
      +          "createdAt",
      +          "updatedAt",
      +          "sizeBytes",
      +          "publishedAt",
      +          "imageUrl",
      +          "embedUrl",
      +          "documentUrl",
      +          "editUrl",
      +          "manageUrl"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "examples": [
      +          "saved"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "chart"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "chart": {
      +        "not": {}
      +      },
      +      "status": {
      +        "examples": [
      +          "transient"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "chart": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "createdAt": {
      -            "description": "ISO-8601 creation timestamp",
      -            "type": "string"
      -          },
      -          "documentUrl": {
      -            "description": "Owner-only chart-document endpoint",
      -            "type": "string"
      -          },
      -          "editUrl": {
      -            "type": "string"
      -          },
      -          "embedUrl": {
      -            "description": "Interactive-embed URL",
      -            "type": "string"
      -          },
      -          "id": {
      -            "description": "Opaque 32-character saved-chart id",
      -            "pattern": "^[0-9a-f]{32}$",
      -            "type": "string"
      -          },
      -          "imageUrl": {
      -            "description": "Rendered-image URL",
      -            "type": "string"
      -          },
      -          "manageUrl": {
      -            "type": "string"
      -          },
      -          "publishedAt": {
      -            "description": "ISO-8601 publish timestamp, or null when public URLs are dark",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "sizeBytes": {
      -            "description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet",
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "source": {
      -            "description": "Chart origin; an open set of string values",
      -            "type": "string"
      -          },
      -          "title": {
      -            "description": "Saved chart title",
      -            "type": "string"
      -          },
      -          "updatedAt": {
      -            "description": "ISO-8601 last-update timestamp",
      -            "type": "string"
      -          },
      -          "view": {
      -            "const": "saved-chart",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "view",
      -          "id",
      -          "source",
      -          "title",
      -          "createdAt",
      -          "updatedAt",
      -          "sizeBytes",
      -          "publishedAt",
      -          "imageUrl",
      -          "embedUrl",
      -          "documentUrl",
      -          "editUrl",
      -          "manageUrl"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "saved",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "chart"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "chart": {
      -        "not": {}
      -      },
      -      "status": {
      -        "const": "transient",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  }
      -]
    • removedOutput schema / properties
      Removed value: -{
      -  "chart": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "createdAt": {
      -        "description": "ISO-8601 creation timestamp",
      -        "type": "string"
      -      },
      -      "documentUrl": {
      -        "description": "Owner-only chart-document endpoint",
      -        "type": "string"
      -      },
      -      "editUrl": {
      -        "type": "string"
      -      },
      -      "embedUrl": {
      -        "description": "Interactive-embed URL",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "Opaque 32-character saved-chart id",
      -        "pattern": "^[0-9a-f]{32}$",
      -        "type": "string"
      -      },
      -      "imageUrl": {
      -        "description": "Rendered-image URL",
      -        "type": "string"
      -      },
      -      "manageUrl": {
      -        "type": "string"
      -      },
      -      "publishedAt": {
      -        "description": "ISO-8601 publish timestamp, or null when public URLs are dark",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sizeBytes": {
      -        "description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "source": {
      -        "description": "Chart origin; an open set of string values",
      -        "type": "string"
      -      },
      -      "title": {
      -        "description": "Saved chart title",
      -        "type": "string"
      -      },
      -      "updatedAt": {
      -        "description": "ISO-8601 last-update timestamp",
      -        "type": "string"
      -      },
      -      "view": {
      -        "const": "saved-chart",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "id",
      -      "source",
      -      "title",
      -      "createdAt",
      -      "updatedAt",
      -      "sizeBytes",
      -      "publishedAt",
      -      "imageUrl",
      -      "embedUrl",
      -      "documentUrl",
      -      "editUrl",
      -      "manageUrl"
      -    ],
      -    "type": "object"
      -  },
      -  "status": {
      -    "enum": [
      -      "saved",
      -      "transient"
      -    ],
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "status"
      -]
  2. Changed8 schema fields changed
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "chart": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "createdAt": {
      +            "description": "ISO-8601 creation timestamp",
      +            "type": "string"
      +          },
      +          "documentUrl": {
      +            "description": "Owner-only chart-document endpoint",
      +            "type": "string"
      +          },
      +          "editUrl": {
      +            "type": "string"
      +          },
      +          "embedUrl": {
      +            "description": "Interactive-embed URL",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Opaque 32-character saved-chart id",
      +            "pattern": "^[0-9a-f]{32}$",
      +            "type": "string"
      +          },
      +          "imageUrl": {
      +            "description": "Rendered-image URL",
      +            "type": "string"
      +          },
      +          "manageUrl": {
      +            "type": "string"
      +          },
      +          "publishedAt": {
      +            "description": "ISO-8601 publish timestamp, or null when public URLs are dark",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sizeBytes": {
      +            "description": "Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "source": {
      +            "description": "Chart origin; an open set of string values",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Saved chart title",
      +            "type": "string"
      +          },
      +          "updatedAt": {
      +            "description": "ISO-8601 last-update timestamp",
      +            "type": "string"
      +          },
      +          "view": {
      +            "const": "saved-chart",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "view",
      +          "id",
      +          "source",
      +          "title",
      +          "createdAt",
      +          "updatedAt",
      +          "sizeBytes",
      +          "publishedAt",
      +          "imageUrl",
      +          "embedUrl",
      +          "documentUrl",
      +          "editUrl",
      +          "manageUrl"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "saved",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "chart"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "chart": {
      +        "not": {}
      +      },
      +      "status": {
      +        "const": "transient",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / chart / properties / configUrl
      Removed value: -{
      -  "description": "Owner-only chart-config endpoint",
      -  "type": "string"
      -}
    • addedOutput schema / properties / chart / properties / documentUrl
      Added value: +{
      +  "description": "Owner-only chart-document endpoint",
      +  "type": "string"
      +}
    • removedOutput schema / properties / chart / properties / publishedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / chart / properties / publishedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / chart / properties / sizeBytes / description
      Previous value: -"Compressed size of the stored published config, excluding drafts; 0 means no published config has been stored yet"New value: +"Compressed size of the stored published document, excluding drafts; 0 means no published document has been stored yet"
    • changedOutput schema / properties / chart / required
      Previous value: -[
      -  "view",
      -  "id",
      -  "source",
      -  "title",
      -  "createdAt",
      -  "updatedAt",
      -  "sizeBytes",
      -  "publishedAt",
      -  "imageUrl",
      -  "embedUrl",
      -  "configUrl",
      -  "editUrl",
      -  "manageUrl"
      -]New value: +[
      +  "view",
      +  "id",
      +  "source",
      +  "title",
      +  "createdAt",
      +  "updatedAt",
      +  "sizeBytes",
      +  "publishedAt",
      +  "imageUrl",
      +  "embedUrl",
      +  "documentUrl",
      +  "editUrl",
      +  "manageUrl"
      +]
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "transient",
      -  "saved"
      -]New value: +[
      +  "saved",
      +  "transient"
      +]
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior, and the description adds owner-scoping when authenticated plus a note that it is hidden from the model—genuinely useful context beyond the structured fields. The 'hidden from the model' phrase is slightly ambiguous about whether an agent should call it at all.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences, with the usage condition front-loaded ahead of the behavioral notes. No wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter read tool with annotations and an output schema, the description covers trigger context and access scoping sufficiently. The opaque 'hidden from the model' clause is the only element left unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with a single well-documented previewId parameter, so the schema carries the semantics. The description adds no additional detail about the parameter, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific operation—restoring a rendered chart preview as the current transient or saved view—and ties it to the Szum chart App context. It does not explicitly differentiate from siblings like get_chart or render_chart, keeping it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly states the triggering condition ('Use this when the Szum chart App needs to restore a rendered preview'), giving the agent a concrete context for invocation. It offers no exclusions or named alternatives, so it falls short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources