Skip to main content
Glama

Add reference image

add_reference_image

Bring a photo into Masonry so other tools can use its real pixels: from a link (a JPEG, PNG or WebP image, or a product page Masonry pulls the main product photo from) or a file the user attached in ChatGPT. For a Studio product shoot, call this for each of the two to ten product photos, then start_product_shoot with the returned reference_ids. Stores it in this workspace (JPEG, PNG or WebP, up to 15 MB) and also returns a reference (masonry://files/...) for single-photo shots and edits: pass it as reference_image_url to generate_image, or as image_url to remix_image, animate_image or upscale_image. Free: costs no credits.

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

Input Schema

NameRequiredDescriptionDefault
urlNohttps link to a JPEG, PNG or WebP photo, or to a product page Masonry pulls the main product photo from. Provide this or file.
fileNoA photo the user attached in ChatGPT. Provide this or url.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: storage in this workspace, accepted formats (JPEG, PNG, WebP), a 15 MB size ceiling, and that the call is free and costs no credits. The annotations already cover mutability and open-world access, so this is value-add rather than redundancy. What it does not spell out is whether the returned reference or reference_id expires and whether re-uploading the same image deduplicates (annotations say idempotentHint=false, which the description leaves unaddressed).

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-loads the core purpose and the two input routes before branching into product-shoot and single-photo guidance, so an agent can stop reading early. The middle clause packing format limits, storage location, and size cap into one sentence is dense but not wasted. Slightly heavy overall, though every clause carries actionable information.

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, so the description carries the return-value burden and discharges it: a reference_ids list for product shoots and a masonry:// reference URL for single-photo work, each with its downstream destination. Combined with cost, size limit, and format constraints, nothing an agent needs before calling is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the nested file object is fully documented, so the schema already carries the parameter burden. The description's addition is mostly restatement — that the url may point at a product page Masonry crawls for the main photo, and that the file is a ChatGPT attachment — plus the useful note that the output is a reference_ids list. That is marginal value on top of an already-complete schema, so baseline 3 applies.

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 a specific verb and resource ('Bring a photo into Masonry so other tools can use its real pixels') and enumerates the two input routes: a link (image or product page) or a ChatGPT file attachment. It also names the downstream tools that consume the output (generate_image, remix_image, animate_image, upscale_image, start_product_shoot), so an agent can distinguish it from those siblings without opening a 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 when-to-use routing: 'For a Studio product shoot, call this for each of the two to ten product photos, then start_product_shoot with the returned reference_ids', and states exactly which parameter to pass the reference into for each downstream tool (reference_image_url vs image_url). The single-photo vs multi-photo branching is spelled out rather than implied.

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