Skip to main content
Glama

Upload a reference image for a transparent video

upload_video_reference_image

Requires an approved AlertForge account connection. OAuth-aware clients should start AlertForge's secure authorization flow and ask the user only to sign in and approve. Setup: https://alertforge.ai/ai-agents#agent-setup. The builder's "Upload image". Send the image as imageBase64 (with mimeType) or as an https imageUrl; PNG, JPEG, WebP or GIF up to 10 MB. A PNG that already has a transparent background is free and returns referenceImagePath straight away. Any other image needs removeBackground: true, which recreates the subject on a transparent background and spends 5 credits; it returns referenceRenderId -- poll get_video_reference_image_status until it is completed, then use its path as referenceImagePath.

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": "upload_video_reference_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageUrlNoOr an https:// link to the image.
mimeTypeNoRequired with imageBase64 unless it is a data: URL.
requestIdNoOptional UUID you choose; a retry with the same id returns the same background-removal job instead of paying again.
imageBase64NoThe image bytes, base64-encoded (a data: URL also works).
removeBackgroundNoDefaults false. true removes the background (5 credits), like the builder's "Remove background" switch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (openWorldHint true, destructiveHint false), it discloses the account-connection prerequisite, the 10 MB / format limits, the credit cost of background removal (5 credits) versus the free transparent-PNG path, and the asynchronous completion flow requiring polling. That is exactly the cost-and-prerequisite context annotations cannot carry.

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?

It is front-loaded with the auth prerequisite and then walks input formats, cost branches, and the follow-up poll in a logical order. Dense but nearly every clause carries operational information; the setup URL sentence is the only borderline element.

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?

There is no output schema, and the description compensates by naming the exact return fields (referenceImagePath, referenceRenderId) and the follow-up call needed to resolve the latter. For a 5-parameter upload tool with a paid async branch, an agent has everything required to invoke it correctly.

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 the baseline is 3, but the description adds genuine meaning: it ties removeBackground to a 5-credit charge and to the referenceRenderId return, and frames imageBase64/imageUrl as mutually alternative input modes. The requestId cost-saving behavior is echoed from the schema rather than newly explained, capping this at 4.

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 states a specific verb and resource ('upload a reference image' for a transparent video) and spells out the two accepted input forms plus the two outcome branches (direct referenceImagePath vs. background-removal job). It is clearly distinguishable from generate_video_reference_image and the status-polling sibling.

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?

It gives explicit conditions: a transparent PNG needs no removeBackground, anything else needs removeBackground: true, and after that you must poll get_video_reference_image_status before using the path. It also tells OAuth-aware clients to trigger the AlertForge authorization flow. It stops short of stating when to prefer generate_video_reference_image over uploading, which keeps it from a 5.

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.