Skip to main content
Glama
niknarra

x3d-mcp

by niknarra

x3d_move_node

Reparent a node in an X3D scene graph by moving it from its current parent to a new parent, preventing cycles.

Instructions

Reparent a node from its current parent to a new parent in the scene graph.

Detaches the node (by DEF name) from its current location and appends it
as a child of the new parent. Detects and prevents cycles.

Args:
    x3d_source: Complete X3D XML document string or file path.
    def_name: DEF name of the node to move.
    new_parent_def: DEF name of the new parent node. Leave empty to move
                    to be a direct child of <Scene>.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
def_nameYes
x3d_sourceYes
new_parent_defNo

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 full burden of behavioral disclosure. It reveals that the node is detached and appended, that cycles are detected and prevented, and that an empty new_parent_def moves the node to be a direct child of <Scene>. This goes beyond a minimal statement. It does not mention error handling or whether the source is mutated in place, but given the output schema, return values are likely covered. Overall, it provides strong behavioral context.

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 concise and front-loaded: the first sentence states the core purpose, followed by two sentences of crucial behavioral details, and then a structured Args list. Every sentence adds value; there is no redundant information.

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 moderate complexity and the presence of an output schema, the description is quite complete. It covers the operation, special constraints (cycle prevention), and parameter semantics. It does not explicitly list error conditions, but the output schema likely defines the response structure. Overall, the description provides sufficient context for an agent to select and invoke the tool.

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 zero description coverage for parameters. The description's Args section explicitly explains the meaning and format of each parameter, including the default behavior of new_parent_def. This fully compensates for the missing schema descriptions and gives the agent clear guidance on how to fill in each argument.

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 function with a specific verb ('Reparent') and resource ('a node from its current parent to a new parent in the scene graph'). It distinguishes itself from sibling tools like x3d_add_node and x3d_remove_node by focusing on moving an existing node rather than adding or removing. The details about detaching and appending further clarify the operation.

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 use cases by describing the reparenting action, and the special behavior for new_parent_def='' provides context. However, it does not explicitly discuss when to use this tool versus alternatives (e.g., x3d_add_node) or state any exclusions. Sibling tool names offer some differentiation but the description itself lacks explicit guidance.

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