Skip to main content
Glama

ue_reparent_blueprint

Reparent a Blueprint to a C++ class to add executable logic while preserving components and values. Optionally remove orphaned variables after reparenting.

Instructions

Riassegna il parent di un Blueprint, tipicamente a una classe C++.

È la via per dare logica eseguibile a un Blueprint: i grafi non sono scrivibili da Python, ma la logica può stare nella classe C++ padre (creata con ue_cpp_class_create) mentre il Blueprint resta il contenitore di componenti e valori.

Le variabili del Blueprint con lo stesso nome di una UPROPERTY del nuovo padre vengono assorbite; le altre sopravvivono rinominate con _0.

Args: blueprint_path: es. "/Game/MyGame/Blueprints/BP_Door". new_parent: nome o path della nuova classe padre, es. "ADoorBase" oppure "/Script/MyGame.DoorBase". remove_unused_variables: ripulisce le variabili rimaste orfane.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_parentYes
blueprint_pathYes
remove_unused_variablesNo
Behavior4/5

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

With no annotations, the description must disclose side effects. It details that variables matching UPROPERTies of the new parent are absorbed, others are renamed with '_0', and mentions an optional cleanup parameter. However, it does not mention potential destructive side effects like broken references or the need for compilation.

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 and a bullet for arguments, but it is slightly verbose. Each sentence adds value, explaining the purpose, behavior, and parameters. Could be tightened, but still effective.

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?

Given no output schema and 3 parameters, the description covers the core behavior and parameter details. However, it lacks information about return value (if any), error conditions (e.g., missing blueprint), and post-reparenting steps like compilation. For a mutation tool, more completeness would be beneficial.

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 description coverage is 0%, so the description must compensate. It explains blueprint_path with an example path format, new_parent with both name and path examples, and describes remove_unused_variables as cleaning orphaned variables. This adds meaning beyond the bare schema titles.

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 reassigns the parent of a Blueprint, typically to a C++ class. It specifies the verb 'riassegna' and the resource 'parent di un Blueprint', distinguishing it from sibling tools like ue_create_blueprint or ue_compile_blueprint by explaining when this reparenting is needed.

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 this tool: to give executable logic to a Blueprint because graphs are not writable from Python, and suggests creating the C++ parent with ue_cpp_class_create. It does not explicitly state when not to use it, but the context is 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/FFZackFair92/unreal-engine-mcp'

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