Skip to main content
Glama

add_slope_mask_node

Adds a slope mask to a UE material graph using SmoothStep and OneMinus nodes; you must wire VertexNormalWS manually to activate it.

Instructions

Drop the two nodes of a slope mask into a material graph: a SmoothStep preset with ConstMin=min_slope / ConstMax=max_slope, plus a downstream node whose output is the mask (intended 1 on flat ground, 0 on vertical walls). It does NOT build a wired chain despite the name: no VertexNormalWS node is created and both inputs are left UNCONNECTED, so until you wire VertexNormalWS.B into the SmoothStep Value pin yourself (connect_material_expressions) the mask evaluates to a constant. The reply's expression_id and note tell you which node to wire. Verify by re-reading the graph, not by success.

Returns: { material_path, expression_id (the OneMinus output), min_slope, max_slope }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pos_xNoEditor graph X position (default -800)
pos_yNoEditor graph Y position (default 200)
max_slopeNoUpper bound for SmoothStep (default 0.5)
min_slopeNoLower bound (radians or slope units, depending on convention) for SmoothStep (default 0.0)
material_pathYesAsset path of the target UMaterial

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only supply bare hints (not read-only, not destructive, not idempotent), so the description carries the real burden and does so well: it discloses that the mask evaluates to a constant until wired, that no VertexNormalWS node is created, how to find the node to wire via expression_id/note, and that success should not be trusted as verification. This is behaviorally rich beyond anything the annotations convey.

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 what gets created, then spends the remaining sentences on the single caveat that changes how the agent must behave. Every sentence earns its place; the return-shape line is compact and useful given no output schema.

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 mutating graph-node tool with only weak annotations and no output schema, the description covers creation behavior, the unconnected-inputs hazard, the required follow-up call, the verification method, and the exact return keys. Nothing needed to invoke it correctly 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 the schema already documents all five parameters, and the baseline is a 3. The description adds only marginal mapping (min_slope/max_slope onto SmoothStep ConstMin/ConstMax) and does not explain pos_x/pos_y or clarify the min_slope unit ambiguity the schema itself flags.

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 precise verb+resource: it drops two specific nodes (a SmoothStep preset plus a downstream OneMinus node producing the mask) into a material graph. It also disambiguates from the name's implication by clarifying it does not build a wired chain, which is exactly the kind of sibling-level distinction an agent needs in a huge tool list.

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?

Gives clear operational context: both inputs are left unconnected, so the agent must manually wire VertexNormalWS.B into the SmoothStep Value pin via the named sibling connect_material_expressions, and must verify by re-reading the graph rather than trusting success. It stops short of an explicit when-to-use/when-not-to-use comparison against comparable node-adders like add_height_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