Skip to main content
Glama

add_material_function_call

Insert a UMaterialFunction call into a UMaterial graph, binding its inputs and outputs as node pins; removes the node if the function cannot be called.

Instructions

Insert a call to a UMaterialFunction into a UMaterial graph: a MaterialFunctionCall node bound to the function, so the function's inputs and outputs become the node's pins. Refused, with the node removed again, when the function cannot be called from this material.

Returns: { material_path: string, function_path: string, node_name: string, node_class: string, expression_count: number }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_nameNoOptional name for the new node; a name another object of the material already has gets a unique variant
function_pathYesFull asset path of the UMaterialFunction to call (e.g. '/Game/Functions/MF_Foo.MF_Foo')
material_pathYesFull asset path of the UMaterial (e.g. '/Game/MyGame/M_Example')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive edit. The description adds genuinely useful behavior beyond that: the failed-call case is atomic ('Refused, with the node removed again'), and the pin-binding semantics of the created node are disclosed. Only permission/auth context and explicit non-idempotency wording are absent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences plus a compact return shape, all front-loaded with the action first and the caveat second. With no output schema present, the Returns line earns its place rather than being padding.

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?

For a graph-mutation tool with full annotation coverage and full schema coverage, the description covers the action, the failure mode, and the return payload. It stops short of situating itself against the closely-named material-function siblings, which is the one remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters (material_path, function_path, node_name) are already documented with examples and the unique-name fallback. The description adds no syntax or path-format detail beyond that, so the baseline 3 applies.

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 ('Insert a call to a UMaterialFunction into a UMaterial graph') and then pins down the resulting object ('a MaterialFunctionCall node bound to the function, so the function's inputs and outputs become the node's pins'). This is enough to separate it from siblings such as add_material_function_input/add_material_function_output, which act on the function asset rather than a graph.

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

Usage Guidelines3/5

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

The purpose strongly implies when to reach for it (you want a material function called inside a material graph), but there is no explicit when/when-not guidance and no named alternative among the many material-function siblings. The refusal condition is a behavioral note, not usage routing.

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