Skip to main content
Glama

visualize_graph

Generate interactive HTML network visualizations of entity relationships. Customize node colors by type or community, and sizes by PageRank centrality to discover patterns.

Instructions

Generate interactive HTML visualization of the knowledge graph using PyVis. Creates a beautiful network diagram with customizable node colors (by entity type or community), node sizes (by PageRank/betweenness/degree), and interactive physics simulation. Perfect for exploring entity relationships and discovering patterns in the knowledge base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathNoOutput file path for HTML visualization (relative to data directory or absolute path)knowledge_graph.html
entity_typesNoFilter to specific entity types
min_occurrencesNoMinimum entity occurrences to include
min_relationship_strengthNoMinimum relationship strength
color_byNoNode coloring schemeentity_type
size_byNoNode sizing metricpagerank
physics_enabledNoEnable physics simulation for dynamic layout
heightNoVisualization height (CSS format)800px
widthNoVisualization width (CSS format)100%
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It mentions key behaviors (HTML output, physics simulation, customization) but omits important details: that it creates a file, potential resource intensity for large graphs, or dependency on an existing knowledge graph. This leaves the agent underinformed.

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 core purpose, then customization details, then use case. Every sentence adds value; no redundancy or filler.

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 9 parameters, 100% schema coverage, and no output schema, the description covers key features (interactive HTML, customizable colors/sizes, physics). However, it lacks context on prerequisites (e.g., graph must exist) and post-action steps (how to view the HTML file). Still, it is largely complete for a visualization tool.

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?

The schema covers 100% of parameters, so baseline is 3. The description adds minimal value beyond the schema; it repeats enum options (e.g., 'PageRank/betweenness/degree' for size_by) but does not clarify semantics like output_path's default behavior or the impact of physics_enabled.

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: 'Generate interactive HTML visualization of the knowledge graph using PyVis.' It distinguishes itself from sibling visualization tools (e.g., visualize_cluster_distribution) by focusing on the full graph, and provides specific details about customization options.

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

Usage Guidelines3/5

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

The description implies usage for exploring entity relationships and discovering patterns, but it does not explicitly state when to use this tool vs alternatives (e.g., other visualization tools). No exclusion criteria or comparative guidance is provided.

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/MichaelTroelsen/tdz-c64-knowledge'

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