Skip to main content
Glama
LufiSprite Studio

LufiSprite Studio

by Lufi735

update_layer

Select or modify a layer by index to rename it, toggle visibility, set opacity or blend mode, or delete it. This enables control over canvas composition.

Instructions

Select, rename, toggle visibility/opacity/blendMode, or delete 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": {
      "layerIndex": "<layerIndex>"
    },
    "name": "update_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
actionNoAction to perform (default: "update").
opacityNo
visibleNo
blendModeNo
layerIndexYes

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, the description carries the full behavioral burden. It does disclose something important that the name hides — that this tool is also the deletion path — but it never says whether delete is permanent, whether omitted fields are left untouched or reset, or what happens with an invalid layerIndex.

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?

A single front-loaded sentence listing operations with zero filler; every clause maps to a parameter or capability the agent needs.

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

Completeness2/5

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

For a six-parameter mutation tool with a destructive branch, no annotations, and no output schema, the definition is too thin. It should state that layerIndex is required, that delete is irreversible, and how partial updates are handled.

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 coverage is only 17%, but the description compensates reasonably by mapping nearly every parameter to an operation (rename→name, toggle visibility/opacity/blendMode, select/delete→action). It still leaves gaps: layerIndex is required and its indexing base is unstated, blendMode's allowed values are undocumented, and the interaction between action='select' and the other fields is unclear.

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 names a specific resource (a layer) and enumerates the concrete operations: select, rename, visibility/opacity/blendMode updates, and delete. An agent can tell what the tool does, though it does not distinguish it from siblings like clear_layer or list_layers, so it stops short of a 5.

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 explicit when-to-use guidance, no exclusions, and no mention of alternatives. The reader must infer that clear_layer is for wiping pixel content and that this tool is for metadata mutations, and nothing states preconditions such as the layer needing to exist.

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