Skip to main content
Glama

Erase something from a photo

erase_object

Remove an object or person from a photo and fill the gap naturally. 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": "erase_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoChatGPT only: the photo the user attached. Use image_url everywhere else.
promptNoWhat to remove, in plain words, for example: the man in the background, the power lines.
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.
mask_urlNoOptional black-and-white mask (https or popnow:// link): white marks what to remove. Use it instead of, or together with, prompt.
image_urlNoThe photo to clean up (https or popnow:// link).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare openWorldHint and non-idempotent, but they say nothing about cost; the description supplies the crucial fact that the call is charged in USD to a PopNow balance and that nothing is charged without max_usd. It does not disclose whether the result is returned synchronously or requires polling via get_job/create_task, which matters for a generative media tool.

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?

Three short sentences, each earning its place: capability, cost model, then invocation sequence. The scope statement is front-loaded before the charging detail.

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

Completeness3/5

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

A 6-parameter nested generative tool with no output schema needs more than a capability and billing note. The description never states that image_url (or the ChatGPT-only image object) must be supplied despite zero required parameters, and it is silent on whether the response is an immediate image or an async task to poll. The cost safeguards are well covered; the invocation mechanics are not.

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 every parameter is already documented, including max_usd's quote-and-approval semantics and prompt's examples. The description's billing sentence reinforces max_usd but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb and resource: "Remove an object or person from a photo and fill the gap naturally." That clearly separates it from image-editing siblings such as remove_background or remove_shadow. It never names an alternative explicitly, so differentiation is inferred rather than stated.

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?

Gives an explicit two-step invocation workflow: call without max_usd for a quote, then call again with max_usd after the user approves. That is real when/how guidance for the billing path. It does not say when to prefer this tool over edit_image or remove_background for similar removals.

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.