Skip to main content
Glama
niknarra

x3d-mcp

by niknarra

x3dom_page

Convert X3D scene XML into a standalone HTML page that renders 3D content in browsers via X3DOM. Handles boilerplate, CDN includes, and element structure automatically.

Instructions

Wrap X3D scene content in a complete X3DOM HTML page.

Takes either a full X3D XML document or raw X3D scene nodes and produces
a standalone HTML page that renders the 3D scene in the browser using X3DOM.

X3DOM is a JavaScript framework that renders X3D content directly in web
browsers without plugins. This tool handles the HTML boilerplate, CDN includes,
and proper element structure.

Args:
    x3d_content: Either a complete X3D XML document (the <Scene> content will
                 be extracted) or raw X3D node XML to place inside <scene>.
    title: Page title shown in the browser tab and as a heading.
    width: Width of the 3D viewport (CSS value, e.g., "800px", "100%").
    height: Height of the 3D viewport (CSS value, e.g., "600px", "100vh").
    show_stats: Show X3DOM rendering statistics overlay.
    show_log: Show X3DOM log console overlay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoX3DOM Scene
widthNo800px
heightNo600px
show_logNo
show_statsNo
x3d_contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the transparency burden. It explains the tool's handling of two input formats (full X3D document vs raw nodes), extracting the <Scene> content or placing nodes inside <scene>. It also mentions the inclusion of CDN resources and boilderplate. It does not cover error handling, but for a page-generation tool, the provided behavior is adequate.

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?

The description is well-structured with a clear opening sentence and a bullet-like Args section. The X3DOM background sentence adds useful context but is somewhat redundant. Overall, it is appropriately sized and organized without excessive verbosity.

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?

The description covers the tool's purpose, input handling, and all parameter semantics. An output schema exists, so the lack of return-value explanation is acceptable. It omits edge-case behavior and doesn't differentiate from closely named siblings, but for a tool with six parameters, it is quite thorough.

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

Parameters5/5

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

The schema provides only titles and defaults (0% coverage), so the description's Args section is essential. It explains each parameter meaningfully, including the dual-mode behavior of x3d_content and gives concrete examples for width/height (e.g., '800px', '100%'), which goes well beyond the schema.

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 starts with a specific, action-oriented sentence: 'Wrap X3D scene content in a complete X3DOM HTML page.' It clearly identifies the tool's function and output, distinguishing it from sibling tools that focus on validation, searching, or node manipulation.

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 provides clear context for when to use the tool—when you need to render X3D in a browser with HTML boilerplate and CDN includes. It does not explicitly contrast this with alternatives like x3dom_starter or x3d_scene_template, but the intended use case is evident.

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/niknarra/x3d-mcp'

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