Skip to main content
Glama

set_shape_key

Adjust a shape key's blend amount and slider range, mute it, or restrict it to a vertex group to control mesh deformation in Blender.

Instructions

Set how strongly a shape key applies, and its options.

Args: object_name: Mesh object. key_name: Shape key. value: Blend amount, normally 0.0 to 1.0, within the slider range. slider_min: Lowest allowed value, -10.0 to 10.0 (0.0 by default). Negative values let a "smile" key also frown. slider_max: Highest allowed value, -10.0 to 10.0 (1.0 by default). mute: Switch the key off without losing its value. vertex_group: Limit the key to this vertex group's weights; "" clears it. relative_key: Key this one is measured against (the Basis by default).

Returns: Dict with the key's settings after the change.

Input Schema

NameRequiredDescriptionDefault
muteNo
valueNo
key_nameYes
slider_maxNo
slider_minNo
object_nameYes
relative_keyNo
vertex_groupNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does real work: it explains that value normally ranges 0.0-1.0 but is bounded by the slider range, that negative slider_min lets a 'smile' key also frown, that mute disables without destroying the stored value, and that an empty vertex_group clears the limit. It stops short of stating error behavior when object or key is missing, or whether the change is undoable.

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?

The lead sentence is front-loaded and each Args line earns its place with distinct semantics. The Returns stanza is slightly redundant since an output schema already exists, a minor wasted line in an otherwise tight docstring.

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 zero schema description coverage and no annotations, the description is nearly complete: every parameter is documented and the return shape is noted. Missing preconditions (key existence, valid object) and any note about interaction with keyframing or undo keep it from being fully complete.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and it does: all eight parameters are explained, including value ranges (-10.0 to 10.0), defaults (0.0 for slider_min, 1.0 for slider_max, Basis for relative_key), and the "" sentinel for vertex_group. This adds meaning well beyond the bare string/number/boolean types in the schema.

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: sets a shape key's blend strength plus its options. It is clearly distinct from sibling shape-key tools (add_shape_key, list_shape_keys, remove_shape_key, keyframe_shape_key, move_shape_key_vertices), so an agent can pick it without opening other schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the verb 'set' and the parameter list; there is no statement of when to prefer this over keyframe_shape_key, nor any prerequisite such as the shape key needing to already exist via add_shape_key. Adequate but leaves routing/precondition inference to the agent.

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