Skip to main content
Glama
SimplyPNG
by SimplyPNG

Estimate Credits

estimate_credits

Estimate credit cost and check account balance before removing backgrounds. Required to verify sufficient credits for processing.

Instructions

Estimate credit cost and check balance. Fast mode (default): 1 credit/image — input resized to 2500px, output up to 2500px. Works with any input size. HD mode: 2 credits/image — input preserved up to 4096px, output up to 4096px. REQUIRED: Call this before EVERY remove_background or batch_remove_background call. After calling, present the result to the user and ask: "This will use X credit(s) (you have Y). Proceed?" Only call the processing tool AFTER the user confirms. If canAfford is false, tell the user they need more credits before proceeding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hdModeNoFast mode (default, 1 credit/image): input is resized to 2500px max before processing — OUTPUT is up to 2500px. Fast mode works with ANY input size (even 4000px images), but output resolution is capped at 2500px. 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, or (2) user needs output resolution above 2500px, or (3) subject has fine edge detail like hair, fur, or feathers. Never default to HD without one of those reasons.
imageCountYesNumber of images to process
Behavior5/5

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

With no annotations, the description fully discloses credit cost per mode, resolution limits for input and output, and the workflow (check balance, get confirmation). It transparently defines behavior for both modes and addresses canAfford=false scenario.

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?

All sentences are informative and front-loaded. The description is well-structured with mode blocks and required steps. Slightly verbose but no redundancy; earns its length.

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?

Without output schema, the description covers return values (credit cost, canAfford) and user interaction. It provides all necessary context for a pre-processing estimation tool, including fallback for insufficient credits.

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%, baseline 3. The description adds significant context beyond schema, especially for hdMode (detailed usage conditions) and imageCount (range constraints already in schema but reiterated). It clarifies parameter semantics beyond bare types.

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 estimates credit cost and checks balance, with specific credit rates for fast and HD modes. It explicitly positions itself as a mandatory prerequisite for remove_background and batch_remove_background, distinguishing its role from sibling tools.

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?

The description provides explicit 'REQUIRED' usage instruction to call before processing tools, including post-call actions (display result, ask user confirmation). It also specifies conditions for HD mode and handling insufficient credits.

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