Skip to main content
Glama

Render bundle preview

render_bundle_preview
Read-onlyIdempotent

Shows a bundle widget as shoppers will see it on a product page: a PNG of the saved bundle on one of the store's products, plus a link to the same page. After create_bundle or update_bundle, render it, compare the picture with the merchant's screenshot or wishes, and patch what differs with update_bundle. Repeat until it matches or after five rounds. Gifts, bundle items and upsells show the store's real products. Subscription choices show the store's plans, or sample monthly plans when it has none. When copying a screenshot, pass it as reference_image: we render at its real width, show both side by side and measure the size differences. Judge sizes only at that width. For an A/B test, version shows version B, C or D.

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": {
      "id": "<id>"
    },
    "name": "render_bundle_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBundle id from list_bundles.
scaleNoPixel density. Default 2. A render with reference_image is always 2.
widthNoWidget width in CSS px for the render. Default 480, or the screenshot's own width when reference_image is set. The screenshot is always measured at its own width.
versionNoA/B test version. Default A, the live item. B, C and D change only while the test is a draft.
product_idNoA product gid or id to show it on. Default: a product the bundle's products filter allows.
reference_imageNoThe merchant's screenshot to compare against: an https link, or the image as base64 (PNG, JPEG or WebP, up to 3 MB; send a bigger one as a link). We work out its CSS width, render at that width and return one picture: the screenshot on the left, the render on the right, same width. We also measure both and suggest size changes you can pass to update_bundle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond readOnlyHint/idempotent, it discloses a five-round iteration cap, that gifts/items/upsells resolve to real store products, that subscriptions fall back to sample monthly plans when the store has none, and that screenshot renders are forced to the screenshot's own width with a side-by-side composite. These are behaviors an agent cannot infer from annotations.

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 what is produced, then the workflow, then the special cases; each block is useful. A few clauses are dense and run together (workflow loop, version semantics), but there is little genuine filler.

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?

With no output schema, the description carries the return-value burden and mostly does: a PNG, a link to the same page, and, with reference_image, a single side-by-side image with measured size suggestions. It never states the response's field names or whether the suggestions are machine-applicable, leaving a small gap for a 6-parameter tool.

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; the description still adds cross-parameter meaning — that reference_image overrides width and scale, that size judgments are only valid at the screenshot width, and that version selects a draft A/B variant. It stops short of adding syntax the schema doesn't already carry.

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 — render a saved bundle widget as a PNG plus page link on a real product page. It implicitly separates itself from render_cart_preview by consistently scoping to bundles, and it makes the artifact (image + link) concrete.

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?

Explicit workflow: call after create_bundle or update_bundle, compare the picture to the merchant's screenshot or wishes, patch differences with update_bundle, repeat until matching or after five rounds. It also names when to pass reference_image and how version applies to A/B tests.

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