Skip to main content
Glama
niknarra

x3d-mcp

by niknarra

x3d_remove_node

Delete a node and its children from an X3D scene by DEF name or type/index, and get the modified X3D XML.

Instructions

Remove a node (and its children) from an X3D scene.

Identifies the target by DEF name, or by node_type + index. Returns
the modified X3D XML document with the node removed.

Args:
    x3d_source: Complete X3D XML document string or file path.
    def_name: DEF name of the node to remove. Takes precedence over node_type.
              Use x3d_list_defs to see available names.
    node_type: Node type to remove (e.g., "DirectionalLight", "Transform").
               Combined with index to select which instance.
    index: 0-based index when removing by node_type. Default 0 (first match).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNo
def_nameNo
node_typeNo
x3d_sourceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It clearly states that the node and its children are removed, that DEF name takes precedence over node_type, and that the modified XML document is returned. This is vital destructive/transformational context beyond the tool name. Minor gaps like error handling or validation are not addressed.

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 well-structured: a brief summary paragraph followed by a clear Args list. Every sentence adds value, with no redundancy or irrelevant detail. It is concise yet comprehensive for the tool's complexity.

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 lack of annotations and the presence of four parameters, the description covers target selection, destructive scope, and return value. It also provides a helpful pointer to a related tool. The only gaps are details about error conditions (e.g., node not found, invalid x3d_source), which are not critical for understanding the tool's primary function.

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 input schema has no parameter descriptions (0% coverage), so the description fully compensates by documenting every parameter: x3d_source (string or file path), def_name (with precedence), node_type (with example types), and index (0-based, default 0). It explains how they interact, which is essential for correct invocation.

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 begins with a clear, specific verb 'Remove' and identifies the resource ('a node (and its children) from an X3D scene'). It explicitly distinguishes this removal tool from siblings like x3d_modify_node or x3d_move_node by stating the action and scope.

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 context on when to use the tool (when a node needs removal) and explains how to select the target via DEF name or node_type+index. It also directs users to x3d_list_defs for available names, but does not explicitly contrast with alternative tools like modify or extract. The removal purpose is clear enough from 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