Skip to main content
Glama

create_material_expression

Adds one unconnected node to a Unreal material graph by class path and position. Use it to build material nodes before wiring them with connect tools.

Instructions

Add ONE node to a material graph, by expression class path (e.g. /Script/Engine.MaterialExpressionConstant, ...TextureSample, ...ScalarParameter), at a graph position. The building block of headless material authoring: create the nodes, then wire them with connect_material_expressions and connect_to_material_output. The node arrives UNCONNECTED, so nothing renders differently until it is wired -- verify with get_material_expressions and get_material_stats, not with the success flag.

Returns: { material_path: string, expression_class_name: string, expression_name: string, node_pos_x: int, node_pos_y: int, success: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_pos_xNoOptional graph editor X position; defaults to 0
node_pos_yNoOptional graph editor Y position; defaults to 0
material_pathYesFull path to the material (e.g., '/Game/Materials/MyMaterial.MyMaterial')
expression_class_nameYesMaterial expression class name (e.g., '/Script/Engine.MaterialExpressionConstant')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare this is a non-read-only, non-idempotent mutation. The description adds critical behavioral context beyond that: the node arrives UNCONNECTED, nothing renders until wired, and the success flag is not sufficient verification. This disclosure meaningfully changes how an agent uses and validates the tool.

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?

Front-loads the core action, then the workflow, then the return shape. Every sentence earns its place, and the return block is justified because no output schema exists. It is dense but well-organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description supplies the return shape and types, and with annotations only covering the mutation profile, it also supplies the unconnected-node caveat and verification path. An agent has everything needed to call and validate the tool correctly.

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 100%, so the schema documents all four parameters, setting a baseline of 3. The description adds real value by enumerating example expression class paths (Constant, TextureSample, ScalarParameter) and clarifying the position parameter, which helps an agent form a valid call.

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?

States a specific verb and resource ('Add ONE node to a material graph'), plus the scoping ('by expression class path ... at a graph position') and clarifies it is a single-node operation. It is easily distinguished from sibling material tools like create_material_function_expression or duplicate_material_expression.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly frames the tool as the building block of a workflow ('create the nodes, then wire them with connect_material_expressions and connect_to_material_output') and names verification alternatives (get_material_expressions, get_material_stats) with the condition for using them. Nothing is left to inference.

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

Deploy Server

Other Tools