Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: draft product images

plan_product_images

AddSynapse: Prepare a DRAFT that changes the images of WooCommerce products: the main image (featured) and the gallery (replace it, add, remove or reorder images) of products, and the main image of variations. See the current images first with get_product (image_id, gallery_image_ids, images) or find_media with product_ids. An image is the id of an image already in the media library (find_media), or {"url": "https://…", "alt": "…"} for a NEW image from a public https link the user gave you (JPG, PNG, WebP or GIF, at most 10 MB, up to 10 per draft): the site checks the link now and downloads the image into its media library only when the user presses Approve, with the alt text. You cannot send image files or pictures from the chat: for a photo on the user's computer or phone, or an image you created, ask the user for a public link to it, or to upload it in wp-admin → Media → Add New, then use find_media for its id. Put all products of one request in ONE call (up to 20); a gallery holds up to 30 images. Changes nothing by itself: the draft card shows the images before and after; nothing changes until the user presses Approve; Undo restores exactly the previous images and deletes the new images it added while nothing else uses them. Before calling it, say in plain words which images will change and get the user's agreement. Put every edit of this request in ONE call (up to 20 products or variations) — the user approves them together with one click and can undo them together; never one call per item.

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": {
      "products": "<products>"
    },
    "name": "plan_product_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoWhich connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site.
productsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses the draft/approval lifecycle ('Changes nothing by itself ... nothing changes until the user presses Approve'), the exact undo semantics ('restores exactly the previous images and deletes the new images it added while nothing else uses them'), and the lazy download behavior (the URL is validated now but downloaded only on Approve). That is well beyond what readOnlyHint=false / destructiveHint=false convey and is consistent with them.

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?

It is front-loaded with the scope, then the mechanics, then the guardrails, and nearly every sentence carries operational content. The batching instruction is stated twice (mid-text and again at the end in near-identical wording), which is the one clear redundancy in an otherwise dense block.

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 a non-read-only, non-idempotent mutation-draft tool with no output schema, the description covers scope, sibling reads, limits, remote-URL handling, approval and undo. An agent has what it needs to call this correctly without guessing, and return-value explanation is unnecessary since the draft card behavior is described.

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 50%, so the description must carry weight and it does: it defines what an 'image' value is (a media library id, or a {"url", "alt"} object for a new image), the accepted formats and 10 MB cap, the 10-new-images-per-draft limit, and the 30-image gallery bound. It adds little on gallery_remove or the reorder case beyond what the schema's own field descriptions say.

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 names a specific verb and resource: it prepares a DRAFT that changes WooCommerce product images, covering the featured image, the gallery (replace/add/remove/reorder) and variation main images. That scope is concrete enough that an agent can tell it apart from the read-side siblings it explicitly cites (get_product, find_media) and from other plan_* tools.

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 the prerequisites ('See the current images first with get_product ... or find_media'), the conversational obligation ('say in plain words which images will change and get the user's agreement'), and the batching rule ('Put all products of one request in ONE call ... never one call per item'). It also tells the agent what not to attempt (sending image files or chat pictures) and gives the fallback path instead.

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