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. OAuth uses site credits (from 30 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": "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_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).
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).
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.7/5.0
Behavior4/5

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

Annotations only declare it is not read-only, not destructive, open-world, and not idempotent; the description goes further by disclosing that every run is paid, that billing splits into site credits versus a USD wallet, and that spend must be pre-approved via a quote. It stops short of saying what the quote response contains or whether a failed run still bills, which matters for a non-idempotent paid operation.

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, purpose front-loaded, each carrying distinct information (capability, billing model, approval sequence). The billing sentences are dense but every clause maps to a real decision the agent has to make; nothing is padded.

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?

For an 8-parameter tool with a nested image object and no output schema, the description covers purpose and the paid-approval loop but leaves out mask_url as an alternative to prompt, the image versus image_url platform split, and any hint of what the quote call returns. The rich schema picks up much of the slack, so it is serviceable rather than complete.

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 baseline is 3, and the description adds sequencing the schema cannot express: quote first, then set max_credits for OAuth or currency=USD with a decimal max_usd for API keys. That ordering constraint is the main semantic value added beyond the per-field descriptions.

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 first sentence gives a specific verb and resource plus the outcome: "Remove an object or person from a photo and fill the gap naturally." That is enough to distinguish it from generation tools, but it never names or contrasts the closest siblings such as edit_image or expand_image, so the agent must infer the boundary.

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?

It gives a real usage rule for the approval flow: omit approval to get a quote, then confirm either max_credits (OAuth) or currency USD plus max_usd (API key). That is workflow guidance, not tool-selection guidance; nothing states when to reach for this versus edit_image, expand_image, or relight_photo.

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.