Skip to main content
Glama

mat_validate_material

Detect material issues by counting expressions and disconnects, then compute a health score (0-100) with compile status and actionable recommendations.

Instructions

Validate a Material: expression count, disconnects, health score.

Gives materials the same trust model as Blueprints. Narrower than Blueprint validation but reliable and non-speculative.

Args: material_path: Full asset path (e.g. '/Game/Materials/M_DemoB')

Returns: StructuredResult with outputs: material_health_score — int 0-100 compile_clean — bool expression_count — int disconnected_count — int (expressions not connected to output) issues[] — structured issue items recommended_actions[] — actionable strings

KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: mat_validate_material(material_path="/Game/MCP_Test/M_Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
material_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It conveys an analytical, non-speculative check and documents the return contract in detail, but it doesn't explicitly state whether the material is modified, whether compilation is triggered, or how invalid paths are handled.

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 tool's purpose is front-loaded, and Args/Returns/Example are cleanly structured; the Blueprint-comparison sentences add selection context without much bloat. The return list is somewhat redundant given the output schema, but the description remains focused.

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 one-parameter validation tool with an output schema, it covers the parameter format, return fields, interpretation cues, and an example. The main missing piece is explicit side-effect/safety disclosure (e.g., read-only, no material mutation), which matters more because annotations are absent.

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?

The schema only declares material_path as a string with no description, so the Args section provides the needed semantics: 'Full asset path' plus the '/Game/Materials/M_DemoB' example. This fully compensates for the 0% schema coverage and gives the agent an actionable format.

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?

The description opens with a specific verb ('Validate') and resource ('a Material'), and enumerates the validation dimensions (expression count, disconnects, health score). This clearly separates it from material creation/compile/connection tools in the sibling set, though it does not explicitly name a competing tool.

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 positions the tool as giving materials the same trust model as Blueprints and notes it is narrower and non-speculative, which is useful context for when a material health check is appropriate. However, it never explicitly states when not to use it or which sibling (e.g., mat_get_compile_diagnostics) to prefer for compile-only concerns.

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