Skip to main content
Glama

Remix image

remix_image

Edit an image that already exists, instead of making a new one: keep its composition and change what prompt describes ("make the jacket red"), or re-stage the same product in a different scene. Point at the source with job_id (an image this connector made earlier), image_url (a direct image URL), or product_url (a product page Masonry will pull the real photo from). Returns the edited image in the conversation, usually in 10-40 seconds; if a slow model is still rendering when the wait ends, the reply carries a job_id for check_generation. Spends the workspace's Masonry credits — see list_models for per-model prices. Call list_skills and pass skill_slug when the request matches a Masonry skill. Use read_skill for guidance; write prompt from the user's request. Omit model to reuse the source image's model.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "remix_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional image model that supports editing/reference images (image_mix). Defaults to the reference's source model, else the workspace default.
job_idNojob_id of a previous generate_image/remix_image/check_generation whose image to use as the reference. Provide this, image_url, or product_url.
promptYesHow to modify or re-stage the reference image, e.g. 'make the jacket red', 'put this product in a bright kitchen scene', 'turn it into a watercolor'.
image_urlNoDirect public https URL (or masonry:// reference) of a reference image to remix. Provide this, job_id, or product_url.
skill_slugNoOptional Masonry skill slug from list_skills. Uses the selected skill for provenance and model routing only; skill text is guidance, and the prompt describes the user's request.
num_outputsNoTakes of the same edit prompt (1-4); every output follows the one prompt, so a prompt that describes several images does not make them. Default 1. Different looks come from generate_image with prompts, one complete description per image, and the same reference.
product_urlNoHttps product/page URL. Masonry extracts a real product image from the page and uses those pixels as the reference. Provide this, job_id, or image_url.
aspect_ratioNoOptional output aspect ratio. Any ratio the chosen model supports (list_models shows each model's ratios), e.g. 4:5, 16:9, 9:16, or an exact WIDTHxHEIGHT on models that accept custom sizes. An unsupported ratio is refused with the model's supported list; nothing is silently substituted. Omit to use the model's default size: models whose default is auto (follow the input) keep the reference's shape, others use their preset default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnly false, openWorld true, idempotent false, destructive false), the description discloses credit spend, per-model pricing via list_models, typical latency of 10-40 seconds, and the partial-result path where a job_id is returned for polling. It does not discuss whether edits can be reverted or how outputs are retained, so it stops short of a 5.

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 purpose and the source-selection rule, then costs, timing, and skill routing. It is dense but every sentence carries operational information; the list_skills/read_skill block is the only mildly verbose stretch.

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?

For an 8-parameter mutation-ish tool with no output schema, the description covers what comes back (the edited image in conversation), latency, credit cost, and the async fallback. An agent has everything needed to call it and handle the response.

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 already 100%, so the baseline is 3, but the description adds real meaning: it clarifies the job_id/image_url/product_url trade-off (Masonry extracts the real product photo from a page) and that omitting model reuses the source image's model, which the schema only implies.

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 opening sentence gives a specific verb and resource plus the key scope distinction: 'Edit an image that already exists, instead of making a new one.' Two concrete modes (recolor via prompt, re-stage a product) make the operation unambiguous relative to generation siblings.

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?

It states when to use this versus generating new (different looks come from generate_image), names the three mutually exclusive reference sources, defines when to consult list_skills/read_skill, and points to check_generation for slow renders. Exclusions and alternatives are explicit rather than inferred.

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