Skip to main content
Glama
aadeshrao123

Unreal-MCP

by aadeshrao123

set_mass_config_trait_property

Modify properties of an existing trait in a Mass Entity Config in-place by index or class, supporting any property type through Unreal's ImportText reflection.

Instructions

Modify properties on an EXISTING trait in a Mass Entity Config in-place.

Never replaces the Traits array, never creates new UObjects. Only touches the specific properties you provide — all other trait values stay intact. Uses Unreal's own ImportText reflection so it supports ANY property type (structs, arrays, object refs, meshes, LOD params, enums, etc.).

Identify the trait by EITHER trait_index OR trait_class (not both required). Set properties with EITHER property_name+property_value (single) OR properties dict (batch).

Args: asset_path: Path to MassEntityConfigAsset trait_index: Index of the trait in the Traits array (from get_mass_config_traits) trait_class: Class name or full path (e.g. "MassMovementTrait" or "/Script/MassMovement.MassMovementTrait") property_name: Single property to set (requires property_value) property_value: Value for property_name. For structs use dict, for object refs use asset path string, for enums use name string. properties: Batch set multiple properties {name: value, ...}

Examples: # Set MaxSpeed on movement trait by class name set_mass_config_trait_property( asset_path="/Jiggify/Game/.../DA_Config", trait_class="MassMovementTrait", property_name="Movement", property_value={"MaxSpeed": 300, "MaxAcceleration": 500} )

# Set LODMaxCount on visualization trait by index
set_mass_config_trait_property(
    asset_path="/Jiggify/Game/.../DA_Config",
    trait_index=4,
    property_name="LODParams",
    property_value={"LODMaxCount": [2000, 5000, 10000, 2147483647]}
)

# Batch set multiple properties
set_mass_config_trait_property(
    asset_path="/Jiggify/Game/.../DA_Config",
    trait_class="MassEnemyTrait",
    properties={"MaxHealth": 50, "BaseDamage": 10, "MoveSpeed": 400}
)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asset_pathYes
propertiesNo
trait_classNo
trait_indexNo
property_nameNo
property_valueNo

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 the full burden. It discloses key behaviors: modifies existing traits in-place, no array replacement, uses ImportText reflection, supports any property type. It does not cover error handling or side effects like saving, but the core behavior is well explained.

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 well-structured with paragraphs, Args, and Examples. The first sentence front-loads the key behavior. Every sentence adds value, but the length could be slightly trimmed without losing clarity. Overall, it is efficient and organized.

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 (6 params, 1 required) and the presence of an output schema (no need to detail return values), the description covers identification, setting modes, and property value formats. It lacks error scenarios (e.g., missing trait) but is otherwise complete for typical usage.

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?

Schema description coverage is 0%, so the description fully compensates. It explains each parameter in the Args section, describes the alternative identifier (trait_index vs trait_class), and details the two setting modes (single via property_name+property_value, batch via properties dict). Examples demonstrate usage with different property types, providing more meaning than the schema.

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's purpose: 'Modify properties on an EXISTING trait in a Mass Entity Config in-place.' It specifies the verb, resource, and important constraints (existing, in-place, no array replacement). This distinguishes it from siblings like get_mass_config_traits, add_mass_config_trait, and remove_mass_config_trait.

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 explains when to use—modifying existing trait properties—and what not to do ('Never replaces the Traits array, never creates new UObjects'). It identifies trait by index or class and provides two modes (single or batch). However, it does not explicitly state when to use alternative tools (e.g., add for new traits), though the context from siblings makes it clear.

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/aadeshrao123/Unreal-MCP'

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