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. Charged in USD to your PopNow balance. Call it without max_usd for a quote, then again with max_usd after the user approves.

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_usdNoApproved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it.
currencyNoOptional. Always USD for this endpoint.
image_urlNoThe finished picture to split into layers (https or popnow:// link).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations mark this as non-read-only and open-world, but the description adds key behavioral context beyond them: it is charged in USD to the PopNow balance, supports a quote-first flow, and nothing is charged without max_usd. That is exactly the kind of cost and approval behavior an agent needs before invoking a paid mutation.

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?

Two sentences with no wasted wording. The purpose is front-loaded, and the billing/approval constraint follows immediately.

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 a paid, non-idempotent image-processing tool with no output schema, the description covers the action, output format, and billing workflow. It could say more about return structure or processing behavior, but the essential context is present and the input schema is fully documented.

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 input schema already documents all six parameters in detail. The description reinforces the max_usd quote/approval flow but does not add much parameter meaning beyond what the schema already provides.

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 states a specific verb and resource: 'Separate a finished picture into editable layers' and names the output type, transparent PNGs. It does not explicitly differentiate from nearby siblings like remove_background or edit_image, 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 Guidelines4/5

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

It gives a clear billing workflow: call without max_usd for a quote, then call again with max_usd after user approval. It does not compare this tool to related alternatives such as remove_background, but the usage context is explicit enough to act on.

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.