Skip to main content
Glama

create_material_function

Idempotent

Creates a UMaterialFunction asset at a specified package path, exposes it to the function library, and saves it. Reuses an existing function if present.

Instructions

Create a UMaterialFunction asset at package_path/name through the editor factory, exposed to the function library, and save it. Idempotent: an existing function is returned untouched with already_exists=true; another asset class at that path is an error. Returns function_path, num_inputs, num_outputs and saved.

Returns: { function_path: string, name: string, package_path: string, description: string, num_inputs: number, num_outputs: number, created: bool, saved: bool, already_exists: bool? }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAsset name for the new material function
descriptionNoText stored as the function Description, the tooltip shown wherever the function is used; default empty. Ignored when the function already exists.
package_pathYes/Game package directory, e.g. '/Game/MyGame'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / description / description
      Previous value: -"Optional description for the material function"New value: +"Text stored as the function Description, the tooltip shown wherever the function is used; default empty. Ignored when the function already exists."
  2. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare not-read-only, not-open-world, idempotent, non-destructive. The description goes further: it explains what idempotency concretely means (existing function returned untouched with already_exists=true), that a conflicting asset class is an error, and that the asset is saved. That specificity is real value beyond the annotations, though save-failure/permission behavior is unstated.

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 action is front-loaded and the idempotency clause is efficient. There is mild redundancy: return fields are summarized in prose ('Returns function_path, num_inputs, num_outputs and saved') and then fully re-listed in the Returns block.

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?

No output schema exists, but the description inlines a complete return shape (function_path, name, package_path, description, num_inputs, num_outputs, created, saved, already_exists) plus error semantics, so an agent knows what to expect. Only edge behavior (auth, failure modes) is missing.

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 are documented in the schema, including the Description tooltip semantics and the idempotency note for description. The prose adds 'at package_path/name' but nothing substantive beyond the schema, 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+resource (create a UMaterialFunction asset) and pins the location semantics to package_path/name, while naming the sibling creation tools implicitly via distinction (delete_material_function, create_material_function_instance coexist). An agent can tell what this produces and where without opening the schema.

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?

It states the tool creates and saves the function and describes idempotent behavior, which informs usage, but never says when to prefer this over alternatives (e.g., create_material_function_instance or create_material_function_expression) or any prerequisites. Usage is implied rather than enumerated.

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