Skip to main content
Glama

Publish an image or video onto a Shopify product

publish_to_shopify_product
Destructive

Attach a finished image or video to a Shopify product listing as product media using the product ID and a public media URL. Video uploads and Shopify processing status are handled for you.

Instructions

Attach a finished IMAGE or VIDEO to one of the merchant's Shopify product listings, as product media. Pass productId (from list_shopify_products, the gid://shopify/Product/… form) and a PUBLIC https mediaUrl, which is what every Hermoso render returns. Whether it is a video is read from the file (.mp4 / .mov / .webm, or the link's content type); pass kind to say so outright. An image is fetched by Shopify directly; a video is uploaded to Shopify for you (MP4, MOV or WEBM, up to Shopify's 1 GB and 10-minute product-video limits; a file over a limit is refused by name, never cut). Shopify processes media asynchronously: the reply is the status read back from Shopify, and READY means it is live on the listing while PROCESSING means it will appear when Shopify finishes. That is success, not a failure. Works for the Shopify store connected to this brand (Connectors > Shopify, or connect_shopify_store) or the store this account was installed on. Free: the render was already paid for.

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": {
      "productId": "<productId>"
    },
    "name": "publish_to_shopify_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
altNoalt text for accessibility and SEO; defaults to a generic credit
kindNoonly when the link does not say (no file extension and no content type)
imageUrlNoolder name for mediaUrl; still accepted
mediaUrlNoany public https image or video URL: a Hermoso render works, and so does ANY file of your own brought in with upload_file
productIdYesgid://shopify/Product/… from list_shopify_products

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.465
    • changedInput schema / properties / imageUrl / description
      Previous value: -"any public https image URL — a Hermoso render works, and so does ANY file of your own brought in with upload_file"New value: +"older name for mediaUrl; still accepted"
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "only when the link does not say (no file extension and no content type)",
      +  "enum": [
      +    "image",
      +    "video"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / mediaUrl
      Added value: +{
      +  "description": "any public https image or video URL: a Hermoso render works, and so does ANY file of your own brought in with upload_file",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "productId",
      -  "imageUrl"
      -]New value: +[
      +  "productId"
      +]
  2. Addedv0.1.161

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (mutation, destructive, open-world), it discloses genuinely useful behavior: media processing is asynchronous, READY vs PROCESSING status semantics, and that PROCESSING is success not failure, plus 1 GB / 10-minute video limits and refusal-not-truncation on oversize files. The notable gap is that idempotentHint=false is never addressed — no warning that repeated calls may attach duplicate media.

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 it does and the two key inputs, then layered with limits and status semantics. The heavy parenthetical style makes it denser than needed, but no sentence is filler.

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 mutation tool with no output schema, it covers the reply format (status read back from Shopify), the async success pattern, size limits, store connectivity, and cost. An agent has enough to call it correctly and interpret the result.

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%, so the baseline is 3. The description does add meaning for kind (how the file extension or content type is otherwise inspected) and restates the gid:// requirement for productId, but alt and the deprecated imageUrl alias are left to the schema.

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?

"Attach a finished IMAGE or VIDEO to one of the merchant's Shopify product listings, as product media" gives a specific verb (attach/publish) and resource (Shopify product media). It is clear what the tool does, but it never distinguishes itself from the sibling set_product_image, which plausibly overlaps.

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

Usage Guidelines4/5

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

It states the prerequisite inputs and their sources (productId from list_shopify_products, mediaUrl from a render), explains when to supply kind (only when the link does not declare the type), and names the store-connection requirement. It does not say when to prefer a sibling such as set_product_image or post_to_shopify_blog instead.

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

Deploy Server

Other Tools