Skip to main content
Glama

show

Execute Python code to generate interactive visualizations, plots, and dashboards, then view them in a browser via a unique URL.

Instructions

Display Python code visualization in a browser.

This tool executes Python code and renders it in a Panel web interface, returning a URL where you can view the output. The code is validated before execution and any errors are reported immediately.

Use this tool whenever the user asks to show, display, visualize data, plots, dashboards, and other Python objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe Python code to execute. For "jupyter" method, the last line is displayed. For "panel" method, objects marked .servable() are displayed.
nameNoA name for the visualization (displayed in admin/feed views)
descriptionNoA short description of the visualization
methodNoExecution mode: - "jupyter": Execute code and display the last expression's result. The last expression must be dedented fully. DO use this for standard data visualizations like plots, dataframes, etc. that do not import and use Panel directly. - "panel": Execute code and display Panel objects marked .servable() DO use this for code that imports and uses Panel to create dashboards, apps, and complex layouts.jupyter

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must cover behavioral traits. It mentions code validation before execution and error reporting. However, it does not disclose potential risks (e.g., code injection, resource consumption) or details about the execution environment. This is adequate but not comprehensive.

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

Conciseness5/5

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

The description is three sentences, front-loaded with the main purpose, and each sentence is meaningful. No superfluous 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?

Given the parameter count (4), required params (1), high schema coverage (100%), and presence of output schema, the description is reasonably complete. It explains execution behavior and use cases. Could add more on return values or error handling specifics.

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%, so the baseline is 3. The description adds context about execution modes (jupyter vs panel) but mostly echoes the schema. It does not provide new meaning beyond what the schema already offers.

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

Purpose5/5

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

The description clearly states the tool's purpose: 'Display Python code visualization in a browser.' It specifies verb (display), resource (Python code visualization), and scope (browser via Panel). This distinguishes it from sibling tools which are mostly get/list operations for docs or panel objects.

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?

The description explicitly says 'Use this tool whenever the user asks to show, display, visualize data, plots, dashboards, and other Python objects.' This provides clear context and use cases. However, it does not explicitly mention when not to use it or alternative tools.

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

Install Server

Other Tools

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/MarcSkovMadsen/holoviz-mcp'

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