Skip to main content
Glama

Set 3D material options

set_material_options

Set 3D material options on one or more After Effects layers—casts/accepts shadows, lights, reflection, transparency, and metal—and auto-convert 2D layers to 3D.

Instructions

Set Material Options on one or more layers: casts shadows (off/on/only), accepts shadows/lights, light transmission, ambient, diffuse, specular intensity/shininess, metal, and the Advanced 3D / Cinema 4D reflection and transparency options. Layers that are not 3D are made 3D first (make3D=false to skip them). Values are percentages unless noted.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_material_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoSet the values as keyframes at this time (seconds, '12f' or timecode). Omit = static value (or a key at the current time when the property is already animated).
metalNoMetal %.
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.
make3DNoTurn on the 3D switch for 2D layers (default true).
ambientNoAmbient %.
diffuseNoDiffuse %.
optionsNoAny other option by display name or matchName, e.g. {'Iris Rotation': 30} or {'ADBE Light Intensity': 80}.
shininessNoSpecular shininess %.
shadowColorNoShadow color (Advanced 3D).
castsShadowsNoCasts Shadows: 'off', 'on' or 'only' (only the shadow renders).
transparencyNoTransparency %.
acceptsLightsNoAccepts Lights.
acceptsShadowsNoAccepts Shadows: on/off ('only' with Advanced 3D).
indexOfRefractionNoIndex of refraction (1 = air).
lightTransmissionNoLight transmission %.
reflectionRolloffNoReflection rolloff %.
specularIntensityNoSpecular intensity %.
reflectionIntensityNoReflection intensity %.
reflectionSharpnessNoReflection sharpness %.
transparencyRolloffNoTransparency rolloff %.
appearsInReflectionsNoAppears in reflections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds genuine value by disclosing the side effect that 2D layers are switched to 3D unless make3D=false, plus a units caveat. It does not say whether unspecified options are left untouched, whether the change is undoable, or what is returned, so a mutation tool with 22 parameters remains partially opaque.

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?

Three front-loaded sentences that pack a large option space into a short paragraph, with the special case (make3D) and the units caveat trailing as expected. The long comma-separated property list is dense but appropriate given 22 parameters.

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 a 22-parameter mutation tool with no output schema, the description covers scope, property families, the keyframe-via-time option implied by the schema, and the important 2D-to-3D side effect. What remains unsaid (no-op behavior for omitted params, error conditions) is minor relative to what the rich schema already provides.

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 100%, so the schema already documents every parameter including units ("Metal %.", "Ambient %."), the time/keyframe behavior, and the options escape hatch. The description's only extra semantics ("Values are percentages unless noted") largely restate what the schema says, so this lands at the baseline for fully documented schemas.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Set Material Options on one or more layers") and enumerates the concrete material property families it governs (shadow casting, ambient/diffuse/specular, Advanced 3D reflection/transparency). This clearly separates it from set_camera_options and set_light_options by domain, though no sibling is named explicitly.

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?

Gives one useful in-call rule (non-3D layers are converted first; make3D=false skips them) but offers no routing guidance about when to use this versus set_layer_switches or set_3d_model-style alternatives, and no prerequisites or restrictions on when it should not be called.

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