Skip to main content
Glama

connect_substrate_slab_to_material

Destructive

Connect a Slab BSDF node to a material's Front Material input. Requires Substrate enabled; returns an error if disabled and recompiles the material on success.

Instructions

Connect the Slab BSDF output to the material's Front Material input. GATED by Substrate: when Substrate is disabled this returns a clear error ("Substrate disabled: cannot connect slab to Front Material...") because the Front Material input is only meaningful with Substrate enabled. When enabled, connects via ConnectMaterialProperty(MP_FrontMaterial) and recompiles.

Returns: { material_path: string, slab_node_id: string, connected_to: string, connected: bool, substrate_enabled: bool, r_substrate_cvar: int, note?: string } | (error: "Substrate disabled: ...")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
material_pathYesContent path to the UMaterial holding the slab node

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With annotations already flagging a destructive, non-idempotent write, the description adds substantial context: the Substrate gating, the exact error string returned when disabled, the internal mechanism (ConnectMaterialProperty(MP_FrontMaterial)), and the recompile side effect. This is well beyond the annotations.

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 the gating constraint, then gives the return shape. Slightly dense but every part earns its place; the inline error/return detail is 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 one-param mutation with no output schema, the description covers the operation, the gating precondition, the failure mode, and the return fields, leaving nothing an agent needs to call it correctly.

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% and there is a single documented parameter (material_path), so the schema carries the semantics. The description repeats material_path only in the return shape and adds no new meaning to the parameter, making the baseline 3 appropriate.

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+resource: connect the Slab BSDF output to the material's Front Material input. It names the exact input being wired, so an agent can distinguish it from generic siblings like connect_material_expressions or connect_to_material_output.

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?

Clearly states the prerequisite: the tool is gated by Substrate and only works when Substrate is enabled, otherwise it errors. It does not, however, point to detect_substrate_enabled or name an alternative when Substrate is off, so it stops short of full when/when-not routing.

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