Skip to main content
Glama

var2_modify_image

Remove background (cut out subject, transparent) OR upscale (2K/4K/8K, "sharper", "enhance", "isolate the ") an existing IMAGE — even when it is a www.var2.ai/image/ link. type ∈ upscale | remove-bg (no other type exists). IMAGE ONLY — judge by media type, not "edit"/"extend": track/song edits → var2_create_audio; video edits → var2_create_video / var2_join_videos. image_url: storage URL, var2 share link, or any https URL. Models: topaz-upscale (upscale_factor 2–6, default 2; credits scale with output megapixels), recraft-upscale (≤2048px), remove-background. Stylistic edits → var2_create_image type=image-to-image.

Input Schema

NameRequiredDescriptionDefault
typeNoDefault upscale.
modelNoDefault topaz-upscale.
image_urlYesStorage URL, var2 share link (www.var2.ai/image/<id> — auto-resolved), or any public https URL.
webhook_urlNoOptional. https:// URL var2 POSTs a signed delivery to when the asset is ready (or fails). Signature header: X-VAR2-Signature: t=<unix>, v1=<hex(hmac_sha256(webhook_secret, t + "." + body))>. Retried with exponential backoff (8 attempts over ~4 days).
upscale_factorNotopaz-upscale only. Default 2. Output = image × factor per side (max 100 MP); credits are charged per started 8 MP of output.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / upscale_factor
      Added value: +{
      +  "description": "topaz-upscale only. Default 2. Output = image × factor per side (max 100 MP); credits are charged per started 8 MP of output.",
      +  "enum": [
      +    2,
      +    3,
      +    4,
      +    5,
      +    6
      +  ],
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With only a title annotation, the description still carries real behavioral weight: it names the available models and their limits (recraft ≤2048px, topaz factor 2–6), discloses that credits scale with output megapixels, and notes var2 share links are auto-resolved. It never says the job is asynchronous or how results are fetched, which is the one notable omission for a generation tool.

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?

Front-loaded with the two core operations, then candidate triggers, then disambiguation. Dense and slightly overloaded with parenthetical synonyms and arrow chains, but nearly every clause routes or constrains a decision rather than padding.

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?

For a 5-parameter async image tool with no output schema, the description covers types, models, credit implications, and input URL forms, with the webhook delivery contract documented in the schema. The missing piece is that the result is retrieved asynchronously (presumably via var2_get_image_result), leaving the post-call lifecycle implicit.

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, but the description adds value the schema lacks: it enumerates the valid model names and their resolution constraints, and cites the natural-language triggers that map to each type value. Defaults and factor range largely restate the schema, keeping it out of 5 territory.

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?

States two specific operations (background removal and upscaling) on a specific resource (an existing IMAGE), and explicitly disambiguates from siblings by media type: audio edits go to var2_create_audio, video to var2_create_video/var2_join_videos, stylistic edits to var2_create_image. An agent can select it without opening any schema.

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?

Gives explicit conditions for use (upscale cues like 'sharper', 'enhance', '2K/4K/8K'; cut-out for background removal), states the closed type set ('no other type exists'), and routes alternative intents to the correct sibling tools. When-not-to-use is covered via the media-type exclusions.

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.

Resources