Skip to main content
Glama

add_height_mask_node

Add an altitude mask to a material graph by dropping in a SmoothStep node with world-unit height bounds, for blending layers by height. Connect WorldPosition Z yourself or the mask stays constant.

Instructions

Drop the nodes of an altitude mask into a material graph: a SmoothStep preset with ConstMin=min_height / ConstMax=max_height in world units, for blending a layer in by height (snow above a line, sand below one). It does NOT build a wired chain despite the name: the SmoothStep Value input is left UNCONNECTED and no world-position node is wired, so you must connect WorldPosition Z into it yourself (connect_material_expressions) or the mask stays constant. Use the reply's expression_id and note to find the pin, then re-read the graph as the oracle.

Returns: { material_path, expression_id (the SmoothStep node), min_height, max_height }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pos_xNoEditor graph X position of the SmoothStep output (default -800)
pos_yNoEditor graph Y position of the SmoothStep output (default 0)
max_heightYesUpper bound (world units) for SmoothStep. Above this the mask is 1.
min_heightYesLower bound (world units) for SmoothStep. Below this the mask is 0.
material_pathYesAsset path of the target UMaterial

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations establish mutation, non-idempotence, non-destructiveness, and local scope. The description discloses the crucial non-obvious behavior: despite the name, no wired chain is built, the SmoothStep Value input is unconnected, and failure to wire WorldPosition Z leaves a constant mask. It also directs use of expression_id/note to locate the pin and advises re-reading the graph as the oracle.

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?

Front-loads purpose in the first sentence, then develops the wiring gotcha, usage step, and return shape. It is dense but every sentence contributes necessary information; no filler.

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?

With no output schema, the description supplies the return shape ({ material_path, expression_id, min_height, max_height }) and explains the critical post-call step of connecting WorldPosition Z. Together with annotations covering the safety profile and the schema covering parameters, the definition is complete for correct invocation.

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 the schema already documents all five parameters, including world-unit bounds and the effect above/below the bounds. The description adds the mapping ConstMin=min_height / ConstMax=max_height and an intuitive snow/sand example, but does not add syntax or format details beyond what the schema provides.

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 and resource: dropping an altitude-mask node (SmoothStep preset) into a material graph, with concrete min/max semantics and example use (snow above a line, sand below). However, it does not explicitly contrast with sibling mask-node tools such as add_slope_mask_node, leaving that differentiation to inference.

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

Usage Guidelines4/5

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

Provides a clear use case (blending a layer by height) and a critical prerequisite: the SmoothStep Value input remains unconnected, so the agent must wire WorldPosition Z via connect_material_expressions. It does not state when not to use this tool or compare against alternatives like add_slope_mask_node.

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