Skip to main content
Glama
baktubak
by baktubak

ap_node_set_value

Set float, color, vector, or button values on a material node's sockets or widgets, then call ap_material_update to apply the batch.

Instructions

Set a value on a node. Four kinds: 'float' (one number on a socket), 'color' (r,g,b,a on a socket), 'vector' (x,y,z on a socket), and 'button' (a node's own widget — dropdown index, checkbox 0/1, or a slider value; see the node reference for each type's button list). Socket-based kinds default to the node's INPUT sockets. Follow a batch of edits with ap_material_update.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNode id from ap_node_list.
kindYesWhat to set.
colorNoRGBA (or RGB, alpha defaults to 1) in 0..1, for kind 'color'.
valueNoThe number, for kind 'float' or 'button'.
buttonNoButton index, for kind 'button'.
socketNoSocket index for float/color/vector kinds.
vectorNo[x, y, z] for kind 'vector'.
is_inputNoTarget an input socket (true) or an output socket.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It explains the mutation semantics of each kind, the distinction between socket values and button widgets, and the important follow-up requirement of ap_material_update. It does not cover permissions, errors, or return values, but the core behavior and sequencing are disclosed.

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?

The description is compact and front-loaded: the first sentence states the purpose, the second defines all variants, and the third gives the critical follow-up instruction. Every sentence earns its place with no filler or repetition.

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

Completeness4/5

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

For an 8-parameter mutation tool with no annotations and no output schema, the description covers the main behavioral axes: kind semantics, socket defaults, button specifics, and the required material update. The only notable gap is that button index details are deferred to an external node reference, and there is no mention of return values or error behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds real semantic value beyond the schema by explaining what each 'kind' means, how color/vector/float map to socket values, how 'button' maps to widget state, and how the input-socket default works. This lifts it above baseline without fully documenting every parameter detail.

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?

The description opens with a specific verb and resource ('Set a value on a node') and immediately enumerates the four kinds it supports. This clearly differentiates the tool from structural siblings like ap_node_add, ap_node_remove, and ap_node_connect.

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 description gives clear contextual guidance: socket-based kinds default to input sockets, and edits should be followed with ap_material_update. It does not explicitly list when-not-to-use conditions or name alternatives, but the tool's domain is distinct enough that the usage context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/baktubak/armorpaint-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server