Skip to main content
Glama

Set Item Images

set_item_images
DestructiveIdempotent

Set the main product image on EXISTING items by SKU (max 500 per call). Each row names an item (sku) and an absolute http(s) imageUrl on the scheme's default port; the server downloads the image (10 MB cap, must serve image/* from a public host) and sets it as the item's main image, REPLACING any current main image (the previous image stays in the gallery). Unknown SKUs report invalid — create items first with upsert_items, which also accepts imageUrl inline. validateOnly=true dry-runs every row without downloading. Partial success with per-row errors; resubmitting a landed row re-downloads and re-applies, so drop rows that already succeeded. Image downloading for the whole call is time-budgeted: once it is spent, the remaining rows fail with a budget-exceeded error — resubmit them in a smaller batch. A client-pinned credential targets its own client's items; an operator credential on a 3PL tenant passes clientId to name the target client.

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": {
      "images": "<images>"
    },
    "name": "set_item_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
imagesYesImage rows (max 500). sku and imageUrl are required per row.
clientIdNoOperator (unpinned) credentials on 3PL tenants: the target client id (GUID) the rows belong to — get ids from list_clients. Client-pinned credentials omit this; the credential decides.
validateOnlyNotrue = dry-run: validate every row and report would_set/invalid, downloading and writing nothing.

Output Schema

NameRequiredDescriptionDefault
setNo
rowsNo
totalNo
failedNo
validateOnlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and openWorldHint=true, and the description supplies the operational specifics behind those flags: the previous main image is replaced (but kept in the gallery), images are capped at 10 MB and must serve image/* from a public host, and the whole call is time-budgeted. It also warns that resubmitting a landed row re-downloads and re-applies, which reconciles with idempotentHint=true rather than contradicting it. The only minor gap is the exact shape of budget-exceeded versus invalid per-row errors, which the output schema likely covers.

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?

Dense but front-loaded: the core action and the EXISTING/upsert contrast come first, followed by constraints and failure semantics. Heavy use of caps and em dashes makes it harder to scan, and the clientId sentence at the end could be split for readability, 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 destructive, batch, credential-scoped mutation, the definition covers replacement semantics, validation, partial-failure recovery, time budget, and credential targeting. An output schema exists, so return values need not be explained, and per-row error reporting is already referenced.

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 baseline is 3; the description earns above baseline by adding the 'absolute http(s) on the scheme's default port' constraint for imageUrl and by explaining clientId's pinned-versus-operator distinction (operator on a 3PL tenant names the target client). These are real usage constraints not spelled out in the schema.

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 — 'Set the main product image on EXISTING items by SKU' — and explicitly contrasts with upsert_items, which creates items and accepts imageUrl inline. An agent can route between them without opening either 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?

Names the alternative and the condition that selects it: unknown SKUs fail, so create first with upsert_items. It also documents validateOnly as the dry-run path and explains that a time-budget failure means resubmitting in a smaller batch. Explicit when/when-not guidance throughout.

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