Skip to main content
Glama
SimplyPNG
by SimplyPNG

Batch Remove Background

batch_remove_background

Remove backgrounds from up to 50 images in a single batch. Supports fast mode for standard size and HD mode for fine details.

Instructions

Remove backgrounds from multiple images in a single batch (up to 50). MANDATORY WORKFLOW — follow these steps in order: (1) Call estimate_credits first (imageCount = number of images). Show user total cost + balance. Ask for confirmation. (2) Only call this tool AFTER the user confirms. (3) After this returns a batchId, poll get_job_status every 5 seconds until all images complete. Credit cost: 1 credit/image (Fast mode, default) or 2 credits/image (HD mode). Fast mode works with any input size — large images are downsampled to 2500px output. Use HD only when user needs output above 2500px, or subjects have fine edge detail (hair, fur, feathers). refineEdges (requires HD): removes color bleeding at edges — recommend for products on colored backgrounds. No extra credit. IMPORTANT about local files: do NOT use base64 — it fills the conversation context. Direct users to share URLs or use https://simplypng.app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hdModeNoFast mode (default, 1 credit/image): input resized to 2500px max — OUTPUT capped at 2500px. Works with any input size. HD mode (2 credits/image): input preserved up to 4096px — OUTPUT up to 4096px. Use HD ONLY when: (1) user explicitly requests HD/high-definition/4K output, (2) user needs output above 2500px, or (3) subjects have fine detail like hair/fur/feathers. Default: false. Never upgrade to HD on your own initiative.
imagesYesArray of images to process (max 50)
backgroundNo
outputTypeNoOutput type for all images
webhookUrlNoHTTPS URL to receive a POST callback when the batch completes
refineEdgesNoEnable edge color refinement for all images. REQUIRES hdMode: true. No extra credit cost. Recommend when subjects have complex edges against strongly colored backgrounds.
outputFormatNo
idempotencyKeyNoOptional idempotency key to prevent duplicate batches
backgroundColorNo
Behavior5/5

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

No annotations provided, so the description fully covers behavior: credit costs (1 or 2 credits/image), output size limits (2500px for Fast, 4096px for HD), base64 token consumption warning, and the mandatory workflow.

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 description is lengthy but well-organized with numbered steps and clear sections. It front-loads the purpose and mandatory workflow. Minor redundancy could be trimmed, but every sentence adds value.

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

Completeness5/5

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

Comprehensive coverage given complexity: 9 parameters, nested objects, multiple modes, workflow dependencies, credit costs, output limitations, base64 warnings, webhook option, and idempotency. No output schema but return value (batchId) is mentioned.

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 67%, but the description adds significant context beyond schema: explains workflow integration, credit cost implications of hdMode, and base64 warnings. However, parameters like background and backgroundColor are not elaborated further in the description.

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?

The description clearly states the tool removes backgrounds from multiple images in a batch (up to 50), distinguishing it from sibling tools like remove_background (single image) and estimate_credits (credit estimation).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Provides a mandatory 3-step workflow: call estimate_credits first, get user confirmation, then call this tool and poll get_job_status. Also explains when to use HD vs Fast mode and refineEdges, and warns against base64 for large files.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SimplyPNG/simplypng-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server