Skip to main content
Glama

ue_cpp_class_create

Creates a compilable C++ class in Unreal Engine project module, enabling Blueprint inheritable logic through C++ code. Supports properties, functions, replication, and BlueprintCallable functions.

Instructions

Genera una classe C++ compilabile nel modulo del progetto.

È la risposta al limite principale di questo MCP: i grafi Blueprint non sono scrivibili da Python, ma la logica può stare in C++ e arrivare ai Blueprint per ereditarietà. Flusso completo:

ue_cpp_class_create -> ue_editor_close -> ue_build_start ->
ue_build_status (finché running=false) -> ue_editor_open ->
ue_reparent_blueprint

Se il progetto è Blueprint-only, il modulo C++ (Build.cs, Target.cs, IMPLEMENT_PRIMARY_GAME_MODULE, voce Modules nel .uproject) viene creato.

Args: uproject: percorso del file .uproject. class_name: nome senza prefisso, es. "DoorBase" -> ADoorBase. parent_class: "Actor", "Pawn", "Character", "ActorComponent", "GameModeBase", "PlayerState", ... module: nome del modulo C++; default il nome del progetto. properties: lista di dict con name, type (es. "float", "FVector", "TObjectPtr"), e opzionali category, default, replicated, rep_notify, read_only. Le proprietà replicate generano anche GetLifetimeReplicatedProps e i DOREPLIFETIME. functions: lista di dict con name, return_type, params, specifiers (default BlueprintCallable), body. Le funzioni BlueprintCallable diventano chiamabili dai grafi Blueprint. with_tick: abilita il Tick (di default è spento, come conviene). force: sovrascrive i file se esistono già.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
moduleNo
uprojectYes
functionsNo
with_tickNo
class_nameYes
propertiesNo
parent_classNoActor
Behavior5/5

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

With no annotations provided, the description carries full burden. It thoroughly discloses behavior: generation of C++ files, creation of module files (Build.cs, etc.) for Blueprint-only projects, overwrite behavior via 'force', replication handling for properties, and BlueprintCallable function generation. No contradictions with annotations (none exist). This is exemplary transparency.

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 relatively long but well-structured. It begins with the primary purpose, then provides workflow context, then parameter details. Every sentence adds value, though the workflow is repeated in both prose and bullet list. Could be slightly more concise, but overall effective and front-loaded.

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 complexity (8 parameters, nested objects for properties and functions, no output schema), the description covers all major aspects: each parameter, replication, BlueprintCallable, module creation, file overwriting. It does not mention error handling or return values, but these are minor gaps. The description is sufficiently complete for an AI agent to use the tool effectively.

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 must add meaning. It explains every parameter in detail: uproject path, class_name naming convention, parent_class options, module default, properties structure (with replication effects), functions structure (with BlueprintCallable default), with_tick default, and force. It goes beyond schema by providing examples and behavioral implications, fully compensating for the empty schema descriptions.

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 creates compilable C++ classes in the project module. It explains the limitation of Blueprint graphs (not writable in Python) and positions this tool as the solution, distinguishing it from Blueprint creation tools. The verb 'genera' (create) and resource 'classe C++' are explicit.

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 provides context for when to use this tool (when logic cannot be expressed in Blueprint graphs) and outlines a full workflow (ue_cpp_class_create -> ue_editor_close -> ... -> ue_reparent_blueprint). It also notes that if the project is Blueprint-only, the C++ module will be created. However, it does not explicitly state when not to use it or compare to alternatives like ue_create_blueprint.

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/Groggy-rollcall812/unreal-engine-mcp'

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