Skip to main content
Glama

Set collection products

update_collection_products
Destructive

Set the complete list of product IDs for a Fourthwall collection, replacing the current product selection.

Instructions

Rate limit: 100 requests / 10 seconds per shop. See Rate limiting.

Sets the full list of product IDs in the collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoExact private shop profile label; not a provider identity or authorization proof.
confirmNoExplicit approval for this exact provider effect or local private-file operation.
payloadNoComplete current native JSON body; cannot mix with native body flags or payload_file.
offerIdsNoFull list of product IDs to set in the collection
payload_fileNoAbsolute regular non-symlink native JSON body file, at most1MiB. Cannot mix with payload or body flags.
collection_idYesNative collectionId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds two things beyond that: an explicit rate limit (100 req / 10s per shop) and the 'full list' replacement semantics, which implies existing products not in the list are removed. Worth noting: 'sets the full list' reads as idempotent while idempotentHint is false, a mild inconsistency rather than a direct contradiction.

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 short sentences with no filler. The rate limit is front-loaded before the purpose statement, which is slightly odd ordering for a tool-selection decision, but the description is otherwise tight and earns its length.

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?

For a destructive 6-parameter mutation with nested objects and multiple body-passing mechanisms (offerIds, payload, payload_file) and no output schema, the description leaves the agent to reconcile the overlapping input paths and the confirm/account requirements from the schema alone. It is minimally adequate given full schema coverage, but a destructive replace operation would benefit from stating what gets removed.

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 100%, so every parameter including offerIds, collection_id, account, confirm and payload_file is already documented in the schema. The description restates the offerIds meaning ('product IDs') but adds no syntax, format, or relationship detail (e.g., how offerIds, payload.offerIds and payload_file interact). Baseline 3 for schema-covered parameters.

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 specific verb and resource: 'Sets the full list of product IDs in the collection.' The word 'full' conveys replacement semantics, which distinguishes it in spirit from get_collection_products, update_collection and update_collection_availability. It does not name or explicitly differentiate from those siblings, so it stops short of a 5.

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

Usage Guidelines2/5

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

No guidance on when to use this instead of update_collection (metadata), update_collection_availability, or get_collection_products. The only contextual note is a rate limit, which is not usage selection guidance. The agent must infer from the name that this is the mutation path for collection membership.

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