Skip to main content
Glama

set_component_property

Set a component property value using a typed value and property name; check available properties and types first with query_project_state.

Instructions

Set a property value on a component. Use query_project_state first to see available properties and their types. Requires BanterMCPBridge extension.

Input Schema

NameRequiredDescriptionDefault
valueYesTyped property value. Use numbers/booleans directly, arrays for vectors/colors, enum name or index, and objects for Rect/Bounds.
objectIdNoPreferred: GameObject globalObjectId from scene-hierarchy.json
objectPathNoLegacy path selector
componentIdNoPreferred when a GameObject has duplicate component types: component globalObjectId from scene-hierarchy.json
propertyNameYesProperty name (e.g., 'mass', 'useGravity', 'isTrigger')
componentTypeNoComponent type name (e.g., 'Rigidbody', 'Transform')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses the BanterMCPBridge extension dependency and that property names/types must be discovered beforehand, but says nothing about what happens on a type mismatch or missing property, whether the change is undoable, or whether play mode affects it.

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?

Three short lines, zero redundancy, with the core action front-loaded and the prerequisite and environment requirement following in priority order. Every sentence earns its place.

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?

For a six-parameter mutation tool with a complex anyOf selector and no output schema, the definition covers the action, the discovery prerequisite, and the extension dependency. It leaves return/confirmation behavior and failure modes unstated, but the rich schema absorbs most of the remaining burden.

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 the schema already explains typed values, objectId vs legacy objectPath, and componentId vs componentType. The description adds only the meta-point that valid property names and types come from query_project_state; it adds no per-parameter meaning beyond the schema.

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 first sentence names a specific verb ('Set') and resource ('a property value on a component'), which is immediately actionable. It does not distinguish itself from near-neighbors like set_object_reference or set_asset_reference, so the agent must infer that those handle references rather than scalar properties.

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 gives explicit sequencing guidance: call query_project_state first to discover available properties and their types. It stops short of saying when not to use this tool or what to do if query_project_state does not list the property, so it is clear context without exclusions.

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