Skip to main content
Glama

Media Generator — Images, Videos & Audios

remove_background

Input: An image URL for background removal.

Output: We will return the image URL with background removed to the user.

Functionality: This tool is used to remove the background from an image. User will provide an image URL and the tool will return the image with the background removed.

Steps:

  1. We will get the user_id from the request context.

  2. We will validate the user's generation tokens.

  3. We will call the Background Remover API with the provided image URL.

  4. This Background Remover API will return a JSON response with the processed image URL.

  5. We will return the processed image URL to the user.

INSTRUCTION FOR CLIENT MODEL:

  • Extract the required input parameter 'image_url' (type: string, URL) from the user's prompt.

  • Ignore any extraneous information in the user's input.

  • Pass the extracted value to this tool as 'image_url'.

  • Example: For user input "Remove the background from this image https://example.com/image.jpg", extract 'image_url' as 'https://example.com/image.jpg'.

Input Schema

NameRequiredDescriptionDefault
image_urlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / description
      Removed value: -"Generic wrapper for non-object return types."
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that generation tokens are validated (an auth/quota prerequisite) and that an external Background Remover API is called, but it omits failure modes, what happens when tokens are insufficient, and any rate or size limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The Input/Output framing is front-loaded and the client extraction instruction earns its place, but steps 1-5 describe internal server implementation (token validation, API calls) that an agent cannot act on and that add bulk without value.

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?

With only one parameter and an output schema already present, the description covers the input format, the extraction behavior, and the general return shape adequately. It could add when-not-to-use context, but nothing critical for calling the tool is missing.

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 description coverage is 0%, so the description must compensate, and it does: it names the 'image_url' string parameter, specifies it is a URL, and gives a concrete extraction example. It adds meaning well beyond the bare schema.

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+resource: 'remove the background from an image', reinforced by input/output statements. It does not, however, distinguish itself from adjacent siblings like edit_image_with_text or upscale_image, which also take an image URL.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as edit_image_with_text or upscale_image. The client instructions cover how to extract the parameter but say nothing about choosing this tool over siblings.

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.