Skip to main content
Glama

Fix Main Image

fix_main_image

Replaces a product image backdrop with pure white, reframes the product to fill about 88% of a square JPEG, and returns a fresh Amazon compliance report.

Instructions

Replace the backdrop with pure white, reframe the product, and re-check.

Writes a square JPEG (default 2000×2000) with the product filling about 88% of the frame on RGB 255, 255, 255, then returns a fresh compliance report for the written file. Works on light-grey or off-white backdrops; busy scenes may still need a manual cutout.

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": {
      "image_path": "<image_path>",
      "output_path": "<output_path>"
    },
    "name": "fix_main_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
image_pathYes
output_pathYes
target_fillNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the mutation's shape: a file is written to output_path as a square JPEG, background is normalized to pure white, and a fresh compliance report is returned. What it omits is overwrite semantics for an existing output_path and whether the source image is ever modified — notable gaps for a write tool with zero annotation coverage.

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?

Two tight sentences with the action front-loaded and the output specification immediately after; no filler or restated naming. The 'and re-check' phrasing in sentence one is slightly cryptic until sentence two clarifies it returns a compliance report.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema exists, so the compliance report need not be detailed, and the description correctly focuses on the write behavior and limits. For a file-mutating tool with no annotations and 0% schema coverage, though, it should state overwrite behavior and input format expectations to be fully sufficient.

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 description coverage is 0% across four parameters, so the description must compensate. It does explain the two non-obvious knobs — the 2000×2000 pixel default for 'size' and the ~88% 'target_fill' — but leaves image_path and output_path to be inferred from their names, and doesn't state accepted image formats or whether size must be square.

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 concrete transformation chain: whiten the backdrop, reframe the product, re-check compliance, and write a square JPEG. The output artifact (2000×2000 default, ~88% fill, RGB 255,255,255) makes the effect unambiguous. It does not explicitly contrast with check_main_image or inspect_and_cutout, so sibling differentiation is only implied by the 'may still need a manual cutout' clause.

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

Usage Guidelines3/5

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

The description gives a real applicability condition — 'works on light-grey or off-white backdrops; busy scenes may still need a manual cutout' — which tells the agent when this tool will succeed and when to escalate. However, it never names the alternative (inspect_and_cutout) or states prerequisites such as a prior check_main_image failure, so routing guidance is inferred rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.