Skip to main content
Glama

set_layer_opacity

Adjust a layer's transparency by setting its opacity from 0 to 255, so you can control how strongly that layer shows in your Aseprite artwork.

Instructions

Adjusts opacity for a layer (0 to 255).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesLayer name
opacityYesOpacity value (0 = transparent, 255 = fully opaque)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose whether the layer must already exist, whether the change is undoable, what happens on an invalid layer name, or whether the value persists to disk. The only behavioral detail is the numeric range, which is already in the schema.

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 short, front-loaded sentence with no filler. It is appropriately sized for the operation, though extremely minimal.

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?

For a simple two-parameter mutation with full schema coverage and no annotations or output schema, the description is minimally adequate. It covers the core action but omits error conditions and persistence/undo behavior that a mutation tool would benefit from given the absence of annotations.

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 both 'name' and 'opacity' with the 0=transparent/255=opaque semantics. The description's '(0 to 255)' merely repeats what the schema provides, so baseline 3 applies.

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 (adjusts) and resource (layer opacity) with the value range, so the action is unambiguous. It does not name a sibling or explicitly distinguish itself from related layer tools like set_layer_visibility, but the purpose is clear.

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 prerequisites (e.g. layer must exist), and no mention of alternatives such as set_layer_visibility for toggling visibility. The agent must infer usage entirely from the name.

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