Skip to main content
Glama

get_material_layer_info

Read-onlyIdempotent

Reads a material function asset without changing it, returning its path, class, usage, input/output counts, expression count, and layer/blend flags.

Instructions

Reads a material function asset (layer, blend or plain function) without changing it. Returns asset_path, class, usage ("MaterialLayer", "MaterialLayerBlend" or "Default"), num_inputs, num_outputs, num_expressions, and is_layer and is_blend (from the class or the usage).

Returns: { asset_path: string, class: string, usage: string, num_inputs: int, num_outputs: int, num_expressions: int, is_layer: bool, is_blend: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layer_pathYesPath of a material layer, layer blend or any other material function, e.g. /Game/MyGame/M_Layer_Example

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / layer_path / description
      Previous value: -"Object path to a UMaterialFunctionMaterialLayer or UMaterialFunctionMaterialLayerBlend, e.g. /Game/MyGame/M_Layer_Example"New value: +"Path of a material layer, layer blend or any other material function, e.g. /Game/MyGame/M_Layer_Example"
  2. First observedv1.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, so the safety profile is covered; 'without changing it' is mildly redundant. The real added value is the disclosure of the returned shape (asset_path, usage values, counts, is_layer/is_blend), which is meaningful behavioral context no structured field provides.

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 verb and scope in the first sentence, then gives the return shape. Minor redundancy: the first paragraph already lists asset_path/usage/is_layer/is_blend and the Returns block repeats them, so a sentence's worth of duplication exists.

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 single-parameter, read-only getter with no output schema, the description supplies the full return field list with types, which is exactly the gap structured data leaves. Only selection guidance against sibling getters 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?

There is a single parameter at 100% schema coverage, and the schema already documents layer_path including the example path. The description explicitly notes the path can point at a layer, a blend, or any other material function, which matches and slightly reinforces the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Reads') and resource ('material function asset (layer, blend or plain function)'), and even enumerates the three asset kinds it accepts. It does not name a sibling alternative (e.g. get_material_layer_stack or get_material_function_graph), so an agent still has to infer which neighboring getter applies.

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

Usage Guidelines2/5

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

The description says what the tool does but never states when to use it versus the many sibling material/function getters. There are no conditions, prerequisites, or exclusions given, leaving selection entirely to inference from the name.

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