Skip to main content
Glama
After Effects MCP for Antigravity

After Effects MCP for Antigravity

by okaybhargav

set_layer_opacity

Set a layer's opacity percentage from 0 to 100 in Adobe After Effects, using a layer name or index and optional composition ID.

Instructions

Sets the opacity percentage (0-100) of a layer.

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": {
      "opacity": "<opacity>"
    },
    "name": "set_layer_opacity"
  }
}

Input Schema

NameRequiredDescriptionDefault
opacityYesOpacity from 0 to 100.
layer_nameNoName of the layer.
layer_indexNo1-based index of the layer.
composition_idNoOptional composition item ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and mostly fails to: it does not say whether the change is destructive/undoable, whether out-of-range values are clamped or rejected, whether opacity is applied as an absolute set versus a delta, or what happens if the layer identifier resolves to nothing. Only the 0-100 range is disclosed, which the schema already states.

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?

A single front-loaded sentence with no filler; nothing could be trimmed. The brevity is appropriate in form, though it reflects the thin content rather than efficient density.

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

Completeness3/5

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

There is no output schema to explain and the operation is conceptually simple, but for an unannotated mutation with four parameters and three competing ways to identify a layer, the description leaves real ambiguity about targeting and failure behavior. It is minimally adequate rather than complete.

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 baseline is 3, and the description repeats the 0-100 range without adding anything the schema does not say. It gives no guidance on the layer targeting choice (layer_name vs layer_index vs composition_id) or on precedence when several are supplied.

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?

The description gives a specific verb and resource ("Sets the opacity percentage ... of a layer") with an explicit value range, but it never distinguishes this from the neighboring set_layer_blending_mode or set_layer_transform tools, so an agent must infer which mutator to call.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (an active composition, a layer existing), and no named alternative. The sentence only restates the operation, leaving tool selection entirely to inference from sibling names.

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