Skip to main content
Glama

unity_component_batch_wire

Wire multiple object references in one call. Specify target GameObject, property, and reference per entry to batch-setup references like connecting a UI manager to panels or enemy AI to waypoints.

Instructions

Wire multiple object references in a single call. Efficient for setting up many references at once (e.g. wiring a UI manager to all its panels, connecting enemy AI to patrol waypoints). Each entry specifies a target GameObject, property, and reference to assign.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
referencesYesArray of reference assignments to perform
portNoTarget Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter.
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It correctly indicates this is a batch write operation (mutating references) and mentions efficiency, but does not disclose side effects, atomicity, error handling (e.g., partial failures), or whether it supports undo. This is adequate for a batch operation but lacks depth.

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 two sentences long and front-loaded with purpose. The first sentence states the core function, the second provides context and examples. It is concise without being terse, but could be slightly more structured (e.g., separating guidelines from examples).

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 complexity (batch operation with nested array of objects) and no output schema, the description provides enough context to understand the use case and parameters. It covers the 'what' and 'why' but could benefit from noting return value or success/failure behavior. The context signals (no output schema, nested objects) make the description reasonably complete.

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?

Schema coverage is 100%, so baseline is 3. The description adds value by providing usage context and examples that help understand the references array structure, especially the combination of fields (path, instanceId, propertyName, etc.) and the optional nature of some. The port parameter is explained as for parallel-safe routing, which is helpful beyond the schema description.

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 wires multiple object references in a single call, with specific examples (UI manager to panels, enemy AI to waypoints) that distinguish it from sibling tools like unity_component_set_reference (which presumably handles single references) and unity_set_object_reference. The verb 'wire' and resource 'object references' are specific and informative.

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 explicitly mentions efficiency for setting up many references at once and provides concrete use cases (wiring UI manager, connecting enemy AI). It does not explicitly state when not to use it or name alternative tools, but the context and examples imply it's for batch operations, differentiating it from single-reference tools.

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/AnkleBreaker-Studio/unity-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server