Skip to main content
Glama
niknarra

x3d-mcp

by niknarra

x3d_generate_node

Generate a single X3D node with specified field values, leveraging the official x3d.py library to ensure type correctness and return the XML fragment.

Instructions

Generate a single X3D node with specified field values.

Uses the official x3d.py library (X3DPSAIL) to construct the node,
ensuring type correctness by construction. Returns the XML fragment
for the node.

Args:
    node_name: The X3D node name. Examples: Box, Sphere, Material, Transform,
               Viewpoint, DirectionalLight, IndexedFaceSet, ImageTexture.
    fields: JSON string of field name-value pairs. Examples:
            '{"size": [2, 3, 1]}' for Box
            '{"diffuseColor": [1, 0, 0], "transparency": 0.5}' for Material
            '{"translation": [1, 2, 0], "rotation": [0, 1, 0, 1.57]}' for Transform
            '{"radius": 2.5}' for Sphere
            '{}' for defaults

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNo{}
node_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden for behavioral disclosure. It mentions using the official x3d.py library and ensuring type correctness by construction, and notes that it returns an XML fragment. However, it does not disclose error handling, validation of node names, or whether the operation is side-effect free, leaving some ambiguity.

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 an Args section and multiple examples. While somewhat long, every part contributes useful information. The examples are particularly valuable and not redundant.

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 tool's simplicity, the description covers the essentials: what it does, parameters with examples, and return format. An output schema exists, so return details are not required. However, it does not mention integration with sibling tools or validation behavior, though this is not critical for a basic generator.

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

Parameters4/5

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

The schema has 0% description coverage, but the description compensates well by providing concrete examples for both parameters. It explains node_name with valid examples (Box, Material, Transform) and fields with JSON examples (size, diffuseColor, translation). This adds significant meaning beyond the raw 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 clearly states 'Generate a single X3D node with specified field values' and explicitly says it returns the XML fragment. This differentiates it from sibling tools like x3d_add_node (which likely adds to a scene) and x3d_extract_node (which extracts from a scene).

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 through examples but does not explicitly state when to use this tool versus alternatives. It lacks explicit 'when not to use' or references to sibling tools, so the agent must infer the appropriate context.

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