Skip to main content
Glama
aadeshrao123

Unreal-MCP

by aadeshrao123

build_material_function_graph

Construct the node graph for a Material Function by defining nodes and connections, optionally clearing existing expressions.

Instructions

Build the internal node graph of a Material Function in one atomic call.

Same interface as build_material_graph but for Material Functions.

FunctionInput nodes use type="FunctionInput" with extra fields: input_name, input_type (Scalar/Vector2/Vector3/Vector4/Texture2D/TextureCube/ Texture2DArray/VolumeTexture/StaticBool/MaterialAttributes/TextureExternal/Bool/Substrate), description, sort_priority, use_preview_as_default, preview_value ([x,y,z,w])

FunctionOutput nodes use type="FunctionOutput" with extra fields: output_name, description, sort_priority

Connections between nodes use the same format as build_material_graph: from_node (int), from_pin (str), to_node (int), to_pin (str)

To connect a node to a FunctionOutput's input, use to_pin="" (the output has a single unnamed input pin labeled "A" internally).

Args: function_path: Full path to existing material function nodes: JSON array of node definitions connections: JSON array of connections clear_existing: Remove existing expressions before building (default True)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodesYes
connectionsYes
function_pathYes
clear_existingNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses atomic operation, default clearing behavior (clear_existing=true), and detailed structure of nodes and connections. No annotations provided, so description bears full burden.

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?

Well-structured with front-loaded purpose, interface comparison, then detailed node/connection specs. Length is justified by complexity, but could be slightly more concise.

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?

Covers all key aspects: purpose, parameters, node types, connection format. Output schema exists so return values not needed. Missing any mention of prerequisites or error conditions.

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?

With 0% schema coverage, description fully compensates by explaining each parameter including function_path, nodes (with node types and fields), connections, and clear_existing default.

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?

Clearly states 'Build the internal node graph of a Material Function in one atomic call', specifies verb and resource, and distinguishes from sibling 'build_material_graph'.

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?

Provides clear context that this is for Material Functions with same interface as build_material_graph, implicitly guiding when to use it, but lacks explicit exclusions or alternatives.

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