Skip to main content
Glama

delete_material_function_input

DestructiveIdempotent

Remove an input node from an Unreal material function using its function path and node ID; idempotent when the node is already absent.

Instructions

Delete a UMaterialExpressionFunctionInput node from a material function (inverse of add_material_function_input). Located by node_id via the function's own expression list. Idempotent: an already-absent node_id returns { deleted:false, already_absent:true } as success, not an error.

Returns: { function_path: string, node_id: string, deleted: bool, already_absent: bool, num_inputs: number, num_outputs: number }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYesThe input node id (UMaterialExpression name) from add_material_function_input
function_pathYesFull path to the material function, e.g. '/Game/MyGame/MF_Example.MF_Example'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly covered. The description adds real value beyond that: it specifies how the node is located (via the function's own expression list, not a global registry) and gives the exact success contract for an already-absent node ({ deleted:false, already_absent:true }), which tells the agent the failure mode is not an error.

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-loaded with the verb and resource, followed by location semantics, idempotency contract, and return shape. No filler sentences; each clause carries distinct information an agent needs.

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?

No output schema exists, so the description compensates by enumerating the return fields and their types. Together with the destructive/idempotent semantics and node location, it covers everything needed to invoke and interpret the result of this two-parameter mutation.

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%, so both parameters are already documented in the schema. The description only adds that node_id is resolved through the function's expression list; it provides no format or value hints beyond what the schema states. Baseline 3 is appropriate when the schema does the heavy lifting.

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 (delete) and resource (UMaterialExpressionFunctionInput node in a material function), and explicitly ties itself to its sibling by calling out the inverse relationship to add_material_function_input. An agent can distinguish this from other material-graph deletions (e.g. delete_material_expression, delete_material_function_output) at a glance.

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?

The inverse-of framing gives clear context for when this tool applies (undoing an add_material_function_input call) and the idempotency note resolves the ambiguous case of a missing node. It does not name explicit alternatives or exclusions, but for a narrowly scoped inverse operation the routing is unambiguous.

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