Skip to main content
Glama

Archive products

archive_products
DestructiveIdempotent

Archive up to 100 products — this is how an AI client removes a product. It leaves sale and every sales channel's feed, and nothing is erased: update_product with status active or draft restores it. Hard deletion is not available over MCP. A product that a non-archived bundle is made of is NOT archived: it is listed in heldByBundle with the bundles that contain it — archive or change those bundles first. Archiving also asks Prom to take the product's listings down; notAttempted counts takedowns not reached in time. To end a live eBay listing use withdraw_ebay_listings. Returns { affected, skipped, notAttempted, heldByBundle } — skipped products were already archived. Idempotent. The result echoes the workspace.

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": {
      "productIds": "<productIds>"
    },
    "name": "archive_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdsYesThe products to archive, at most 100 ids from search_products.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructive/idempotent/openWorld=false; the description goes well beyond by disclosing that nothing is erased and how to reverse it, the heldByBundle partial-failure mode, the notAttempted takedown semantics via Prom, the meaning of skipped (already archived), and the exact return fields. That is exactly the mutation/partial-success context an agent needs before calling a destructive tool.

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 the action and its role, and nearly every clause carries required behavioral detail (restoration, bundle blocking, takedowns, return fields). It is dense to the point of being slightly clause-heavy, and the trailing 'The result echoes the workspace' is cryptic, but there is little outright waste.

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?

With no output schema, the description takes on the burden of explaining the return shape ({ affected, skipped, notAttempted, heldByBundle }) and the meaning of each field, plus partial-failure and reversibility semantics. For a destructive batch tool, nothing material is missing.

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% and there is only one parameter, whose schema already documents the 100-id maximum and that ids come from search_products. The description restates 'up to 100 products' but adds no new syntax or format detail beyond the schema. Baseline 3 applies.

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 ('Archive up to 100 products') and immediately scopes it as the removal path ('this is how an AI client removes a product'). It distinguishes itself from update_product (restore path), withdraw_ebay_listings (live eBay listings), and rules out hard deletion over MCP, so an agent can route correctly without reading siblings' schemas.

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 when-to-use (removing a product), explicit when-not/alternative paths (update_product with status active or draft to restore; withdraw_ebay_listings to end a live eBay listing), and an explicit blocker condition (products held by a non-archived bundle are not archived — handle bundles first). Nothing is left to inference.

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