Skip to main content
Glama

set_slice

Update an existing sprite slice's bounds, name, color, or data in Aseprite to manage metadata, collision areas, and export regions.

Instructions

Update an existing slice's bounds, name, colour, or data.

data: a string is stored as it arrives; a dict or list is JSON-encoded, so structured
user-data round-trips through export_slice_metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
dataNo
nameYes
colorNo
widthNo
heightNo
filenameYes
new_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed31 schema fields changedv0.10.0
    • removedInput schema / properties / color / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / color / default
      Removed value: -null
    • removedInput schema / properties / color / title
      Removed value: -"Color"
    • addedInput schema / properties / color / type
      Added value: +"string"
    • removedInput schema / properties / data / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / data / default
      Removed value: -null
    • removedInput schema / properties / data / title
      Removed value: -"Data"
    • addedInput schema / properties / data / type
      Added value: +"string"
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • removedInput schema / properties / height / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / height / default
      Removed value: -null
    • removedInput schema / properties / height / title
      Removed value: -"Height"
    • addedInput schema / properties / height / type
      Added value: +"integer"
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • removedInput schema / properties / new_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / new_name / default
      Removed value: -null
    • removedInput schema / properties / new_name / title
      Removed value: -"New Name"
    • addedInput schema / properties / new_name / type
      Added value: +"string"
    • removedInput schema / properties / width / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / width / default
      Removed value: -null
    • removedInput schema / properties / width / title
      Removed value: -"Width"
    • addedInput schema / properties / width / type
      Added value: +"integer"
    • removedInput schema / properties / x / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / x / default
      Removed value: -null
    • removedInput schema / properties / x / title
      Removed value: -"X"
    • addedInput schema / properties / x / type
      Added value: +"integer"
    • removedInput schema / properties / y / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / y / default
      Removed value: -null
    • removedInput schema / properties / y / title
      Removed value: -"Y"
    • addedInput schema / properties / y / type
      Added value: +"integer"
    • removedInput schema / title
      Removed value: -"set_sliceArguments"
  2. First observedv0.7.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=false, confirming this is a mutation on closed local data. The description adds useful detail on data encoding behavior (strings pass through, dicts/lists are JSON-encoded and round-trip via export_slice_metadata) which goes beyond annotations. However, it doesn't say whether undefined fields are left alone or cleared, whether the name change via new_name vs name behaves how, or what happens if the slice doesn't exist.

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?

Two short paragraphs; the first sentence front-loads purpose and the second adds targeted detail on the data param. No wasted words, though the encoding note could be trimmed slightly.

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?

9 parameters with 0% schema coverage, no output schema, no annotations beyond safety flags, and description only covers one parameter's behavior. For a 9-param mutation tool the description leaves substantial gaps — how bounds interact, what new_name vs name does, and error behavior are all unstated.

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 0% — no parameter is documented in the schema. The description explains data encoding semantics for the 'data' param but says nothing about x/y/width/height/fileName semantic constraints, nor the difference between 'name' (required) and 'new_name'. Partial compensation at baseline 3.

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?

Clearly states 'Update an existing slice's bounds, name, colour, or data' — specific verb (update) plus resource (slice) plus enumerable fields. Distinguishes itself from siblings add_slice/remove_slice/list_slices, though it doesn't explicitly name them.

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?

No guidance about when to use this vs add_slice or remove_slice, no mention of prerequisites like whether the slice must already exist, and no exclusions. The 'existing' implies the slice must pre-exist but this is only weakly inferred.

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