Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
VEGALITE_VIEWER_DEBUGNoEnable detailed debug logging. Set to '1' to enable.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
upload_dataA

A tool to upload and register a JSON dataset by name for use in subsequent visualizations. When to use this tool:

  • When the user asks to visualize data, call this tool first to register the dataset, then call visualize_data. How to use this tool:

  • Provide a short, descriptive name and the dataset as a list of JSON objects (records).

  • Each object should share a consistent set of keys (fields).

visualize_dataA

A tool to render a Vega-Lite visualization of a registered dataset directly in the chat. When to use this tool:

  • When the dataset is complex or multi-dimensional and a visual representation would be more informative than text.

  • Not useful for single data points. How to use this tool:

  1. Upload the dataset first using the upload_data tool, then reference it by name here.

  2. Analyze the dataset's structure and fields to determine which fields map to which visual channels (x, y, color, size, etc.).

  3. Construct a Vega-Lite specification for the desired chart type. Consult the Vega-Lite documentation (https://vega.github.io/vega-lite/docs) and example gallery (https://vega.github.io/vega-lite/examples) for guidance.

  4. Ensure the spec is a valid instance of the Vega-Lite schema: https://vega.github.io/schema/vega-lite/v6.json. Do not include a "data" key — it is injected automatically from the registered dataset.

Prompts

Interactive templates invoked by user choice

NameDescription
Create a simple chart for a JSON datasetAdvises your LLM create a simple chart with a desired type (e.g., 'bar', 'line', 'pie', etc.) for a provided JSON dataset

Resources

Contextual data attached and managed by the client

NameDescription
vegalite_viewer_appVega-Lite visualization viewer app.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stephaneberle9/mcp-server-vegalite-viewer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server