Skip to main content
Glama

add_component

Attach Unity built-in or Banter components to a GameObject by object ID or hierarchy path, enabling behaviors, physics, colliders, audio, and custom functionality in the Unity Editor.

Instructions

Add a component to a GameObject. Supports Unity built-in components (Rigidbody, BoxCollider, etc.) and Banter components. Requires BanterMCPBridge extension.

Input Schema

NameRequiredDescriptionDefault
objectIdNoPreferred: GameObject globalObjectId from scene-hierarchy.json
objectPathNoLegacy path selector (e.g., 'MyObject' or 'Parent/Child')
componentTypeYesComponent type name (e.g., 'Rigidbody', 'BoxCollider', 'AudioSource')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the bridge-extension prerequisite and the component-type scope, but says nothing about duplicate handling, idempotency, scene/undo side effects, or what is returned when the component is added.

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?

Three short sentences, front-loaded with the action, then capability scope, then the hard prerequisite. Efficient, with only mild overlap between the component-type examples here and in the schema.

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?

No output schema and no annotations, so the description should do more about mutation effects and error/duplicate behavior. It adequately covers the prerequisite and supported components but leaves the agent guessing about result and side effects.

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 description coverage is 100%, so objectId vs objectPath and componentType are already documented in the schema. The description only restates the component family hint, adding no syntax or constraint meaning beyond the structured fields.

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?

States a specific verb and resource ("Add a component to a GameObject") plus the supported component families (Unity built-ins and Banter components). It is distinguishable from siblings like remove_component and set_component_property, though it never explicitly names them.

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?

Usage is implied by the verb and by the prerequisite "Requires BanterMCPBridge extension," which tells the agent when the tool is available at all. There is no explicit when-to-use versus when-to-use-something-else guidance, and no exclusions (e.g., what to do if the component already exists).

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