Skip to main content
Glama

Split a picture into layers

split_layers

Separate a finished picture into editable layers (text, people, objects, background) as transparent PNGs. OAuth uses site credits (from 42 credits per image with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "split_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoChatGPT only: the picture the user attached. Use image_url everywhere else.
modelNoOptional model that can split layers (list_models with category image shows them). Leave empty for the default, Seedream 5.0 Pro.
promptNoOptional: name the parts to separate, for example the title text, the person, the background. Leave empty to let PopNow decide.
max_usdNoAPI key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.
currencyNoBilling unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).
image_urlNoThe finished picture to split into layers (https or popnow:// link).
max_creditsNoOAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.
production_idNoOptional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / production_id
      Added value: +{
      +  "description": "Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the description need not restate safety. Beyond that, it discloses the billing models: OAuth spends site credits ('from 42 credits per image with the default model'), API keys spend from a separate USD wallet, and a pre-approval quote step exists. These are real behavioral facts the annotations do not cover; only failure or refund behavior is left unstated.

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?

Three sentences, front-loaded with the core action and output artifact, followed by the two billing paths and the approval workflow. Every sentence carries information, and there is no filler. The billing sentences are dense, but they are structured so that the OAuth path and the API-key path can be read independently.

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?

For an 8-parameter tool with no output schema and a two-wallet billing model, the description covers what it produces (transparent PNG layers) and the approval mechanics needed to avoid an unexpected spend. It is nearly complete. Minor gaps remain, such as no guidance on results when the source image is low resolution or how layers are returned, and there is no mention of how production_id budgeting interacts with the quote flow beyond what the schema says.

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 baseline is 3. The description goes further by explaining the cross-parameter rule that max_credits and max_usd belong to different billing paths and must never be converted, and that either value should only be set after the user confirms a quote. That adds meaning beyond the per-field schema text, though the image versus image_url split is left entirely to the schema.

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 opens with a specific verb and resource: 'Separate a finished picture into editable layers (text, people, objects, background) as transparent PNGs.' It also names the output format, which lets an agent tell this apart from generation tools. It does not explicitly contrast with adjacent tools such as edit_image or erase_object, 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 Guidelines3/5

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

The description gives procedural guidance for the two-step quote-then-confirm flow: omit approval to get a quote, then supply max_credits for OAuth or currency USD plus a decimal max_usd for API keys. However, it never states when to choose this tool over alternatives like edit_image, nor does it mention prerequisites such as image size or format limits. Usage is implied from the description rather than fully scoped.

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.