Skip to main content
Glama

blender_shader_graph_edit

Applies batched shader graph patches in Blender: add or remove nodes, set inputs and properties, edit color ramps, connect or disconnect sockets, and move nodes atomically.

Instructions

Patch shader nodes, all or nothing. operations (max 64): add_node{id,type,properties?,inputs?,location?}, remove_node{node}, set_input{node,socket,value}, set_property{node,property,value}, set_color_ramp{node,stops:[{position,color}],interpolation?}, connect{from,from_socket,to,to_socket,replace?}, disconnect{to,to_socket}, move_node{node,location}. Each has 'op'. type is a Blender idname such as ShaderNodeTexNoise; get socket IDs from blender_shader_graph_inspect.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operations": "<operations>"
    },
    "name": "blender_shader_graph_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
worldNo
materialNo
group_pathNo
operationsYes
shared_dataNoerror

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full load, and it does disclose two real behavioral facts: the batch is transactional (all-or-nothing) and the maximum batch size is 64 operations. It says nothing about required editor/mode state, what happens if the target material or group_path does not exist, whether a missing node tree is created, or how partial failures are reported back.

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-loaded with the purpose and the atomicity guarantee, then compactly lists the operation grammar with no filler sentences. The operation block is telegraphic and dense, but every token conveys schema information that is otherwise unavailable, so nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a destructive graph-mutation tool with no annotations and no output schema, so the description must supply the missing context. It omits the single most important targeting question -- what node tree is being edited (world vs. material vs. group_path) -- and never explains shared_data, leaving an agent unable to confidently invoke it beyond the simplest default case.

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 0%, so the schema contributes almost nothing on its own; the description compensates very well for the `operations` parameter, spelling out each op's shape, requiring an 'op' discriminator, and explaining that `type` is a Blender idname like ShaderNodeTexNoise. However, four of the five top-level parameters -- world, material, group_path, and shared_data -- get zero explanation, including the non-obvious shared_data enum (error / update_all / make_single_user), which is the highest-stakes choice for a mutating tool.

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 and resource ("Patch shader nodes") and then enumerates the exact mutation vocabulary (add_node, remove_node, set_input, set_property, set_color_ramp, connect, disconnect, move_node), so an agent knows precisely the scope of edits. It also distinguishes itself from blender_shader_graph_inspect, which is named as the read-side counterpart that supplies socket IDs.

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 a clear prerequisite workflow: call blender_shader_graph_inspect first to obtain socket IDs, then build the `operations` payload. It also flags that the patch is atomic ("all or nothing"). No explicit when-not guidance is given, and nothing says how to choose between editing a world, a material, or a node group.

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