Skip to main content
Glama

remove_component

Removes a component from a Unity GameObject by object ID or path and component type or component ID. Use it to strip Rigidbody, Collider, or other components from scene objects.

Instructions

Remove a component from a GameObject. Requires BanterMCPBridge extension.

Input Schema

NameRequiredDescriptionDefault
objectIdNoPreferred: GameObject globalObjectId from scene-hierarchy.json
objectPathNoLegacy path selector
componentIdNoPreferred when a GameObject has duplicate component types: component globalObjectId from scene-hierarchy.json
componentTypeNoComponent type name to remove (e.g., 'Rigidbody', 'BoxCollider')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It conveys that this is a destructive mutation and that a bridge extension is required, but says nothing about reversibility/undo, behavior when the component or GameObject is missing, or what happens to dependent settings.

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?

Two short sentences, front-loaded with the action and followed by the non-obvious prerequisite. There is no filler and nothing an agent must read past to find the operative information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no annotations and no output schema, the definition covers what the tool does and its prerequisite but leaves error semantics and undo/rollback behavior undocumented. The rich schema offsets some of this, making it adequate but not complete.

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?

Schema coverage is 100%, with each parameter (objectId, objectPath, componentId, componentType) documented including the preferred-vs-legacy distinction and the duplicate-component case. The description adds nothing beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Remove a component from a GameObject'), which is unambiguous and clearly distinct from sibling add_component or delete_gameobject. It does not explicitly name a sibling alternative, but the operation is self-evident.

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?

It discloses a real precondition ('Requires BanterMCPBridge extension') that would otherwise cause silent failure, which is valuable. However, it gives no guidance on when to use this versus delete_gameobject, or on play-mode vs edit-mode applicability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.