Skip to main content
Glama

recompile_material_function

Destructive

Update a material function, layer, or function instance by recompiling it, so loaded materials reload and dependent instances are marked dirty before saving the asset.

Instructions

Recompile a material function, layer or function instance (UpdateMaterialFunction): loaded materials using it recompile and dependent function instances are marked dirty but not saved, then the function itself is saved; success requires that save. recompiled is always true, not a shader-error report.

Returns: { material_function_path: string, function_class: string, recompiled: bool, saved: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
material_function_pathYesAsset path of the UMaterialFunctionInterface (function, layer or function instance), e.g. "/Game/Materials/MF_Blend".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / material_function_path / description
      Previous value: -"Asset path of the UMaterialFunction"New value: +"Asset path of the UMaterialFunctionInterface (function, layer or function instance), e.g. \"/Game/Materials/MF_Blend\"."
  2. First observedv1.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining that loaded materials recompile, dependent function instances get marked dirty but are not saved, and the function itself is then saved, with success contingent on that save. It also pre-empts a likely misreading by noting that 'recompiled' is always true and is not a shader-error report.

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 action and keeps to two dense but purposeful sentences, with the returns summary clearly separated. Slightly clause-heavy, but each clause carries real information.

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?

For a mutation tool with no output schema, the description supplies both the return shape and the side-effect/save semantics an agent needs. Nothing essential for correct invocation 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 coverage is 100%, so the parameter and its format are already documented in the schema. The description adds little parameter-level detail beyond restating the accepted asset types, 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 (recompile) and resource (material function, layer or function instance), and the parenthetical engine call (UpdateMaterialFunction) anchors it. An agent can distinguish it from material-level siblings like compile_material at a glance.

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 scope (function/layer/instance) implies when this applies rather than compile_material, but no explicit when-to-use or when-not statement or named alternative is given. Usage is inferable but not spelled out.

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