Skip to main content
Glama

Separate an image into layers

split_image_into_layers

Separate one of your own Switch images into editable layers: a base plus transparent PNG layers, each named and placed. Seedream 5.0 Pro (the default) makes up to 16 layers. Seedream 5.5 (pass model) makes up to 99 layers, takes max_layers (2 to 100 pictures in all, 30 when left out) and can read the words in text layers (text_recognition); it costs 1 token a picture made at 1K and 1.5K and 2 at 2K. Say which image (asset_id, or "my last image"), optionally what to separate, and the size. Charged only for the layers that actually come back; a failed split is fully refunded.

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": {
      "asset_id": "<asset_id>"
    },
    "name": "split_image_into_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOutput size for the layers. Auto follows the original image.
modelNoWhich Seedream separates the layers. Left out = Seedream 5.0 Pro. Seedream 5.5 separates more finely (up to 99 layers) and can read text.
asset_idYesThe id of your image to separate. "my last image" also works.
max_layersNoSeedream 5.5 only: the most pictures to make, the base included. 2 to 100, 30 when left out. A bigger number separates more finely and holds more tokens until it finishes.
instructionNoOptional: what to separate, e.g. "the outfit and the bunny". Leave empty to separate everything the model finds.
text_recognitionNoSeedream 5.5 only: also read the words in text layers. The words are noted on the layer; the layer stays a picture.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / max_layers
      Added value: +{
      +  "description": "Seedream 5.5 only: the most pictures to make, the base included. 2 to 100, 30 when left out. A bigger number separates more finely and holds more tokens until it finishes.",
      +  "maximum": 100,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Which Seedream separates the layers. Left out = Seedream 5.0 Pro. Seedream 5.5 separates more finely (up to 99 layers) and can read text.",
      +  "enum": [
      +    "Seedream 5.0 Pro",
      +    "Seedream 5.5"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / text_recognition
      Added value: +{
      +  "description": "Seedream 5.5 only: also read the words in text layers. The words are noted on the layer; the layer stays a picture.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover the generic safety profile (openWorld, non-destructive), while the description supplies the operationally important behavior: per-size token pricing by model (1/1.5 at 1K–1.5K, 2 at 2K), charging only for returned layers, full refund on failure, and that max_layers holds tokens until completion. Those are exactly the details an agent needs before committing a paid, long-running job.

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?

The purpose is front-loaded and every sentence carries usable information. It is dense and repeats the max_layers range and default that the schema already states, so a small amount of wording could be trimmed.

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?

With six parameters, no output schema, and a paid asynchronous job, the description covers defaults, limits, cost, and refund policy well. The notable gap is what the call returns (layer ids or an asset reference) and whether results arrive asynchronously, which an agent would need to chain follow-up calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the bar is already met, yet the description adds meaning beyond it: max_layers is framed as a trade-off between separation fineness and token hold, model choice is tied to layer ceiling and text capability, and text_recognition is clarified as annotation-only while the layer remains a picture.

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

Purpose5/5

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

States a specific verb and resource ('Separate one of your own Switch images into editable layers') and immediately defines the output structure: a base plus named, placed transparent PNG layers. The 'your own Switch image' scoping and the model-specific layer limits distinguish it from generation siblings like generate_image.

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?

Offers real guidance on model choice (Seedream 5.0 Pro default vs 5.5 for finer separation and text reading) and on what to pass. But it never states when to use this tool versus regenerating an image, nor any prerequisite about the image already existing in the account, and there are no explicit exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources