Skip to main content
Glama
VTEX MCP Server

VTEX MCP Server

by Volve-Tech

vtex_add_sku_to_subcollection

Adds an SKU to a specified VTEX subcollection by subCollectionId, enabling catalog grouping for Legacy CMS Portal-compatible collections.

Instructions

[POST] Add SKU to subcollection | Category: Subcollection | Path: /api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit | Description: >⚠️ There are two ways to configure collections, through Legacy CMS Portal or using the Beta Collection module. This endpoint is compatible with [collections configured through the Legacy CMS Portal] | Path params: subCollectionId

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": {
      "subCollectionId": "<subCollectionId>"
    },
    "name": "vtex_add_sku_to_subcollection"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (JSON object)
subCollectionIdYesPath parameter: subCollectionId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full transparency burden. It discloses that this is a POST mutation and that only Legacy-CMS-configured collections are supported, which is valuable, but it says nothing about idempotency (adding an already-present SKU), required permissions, or what is returned on success.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The operation and compatibility caveat are front-loaded, but the pipe-delimited wrapper ('[POST]', 'Category:', 'Path:', 'Description:', 'Path params:') is boilerplate that duplicates the endpoint path and name rather than adding meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation with an undocumented nested request body, no annotations, and no output schema, the definition leaves too much open. An agent knows the route and the Legacy-CMS caveat but cannot construct a correct call or predict the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description only restates the path parameter ('Path params: subCollectionId'), which the schema already documents. The body is a nested object with no field-level documentation anywhere, so the agent cannot tell what key the SKU identifier belongs to; the 100% coverage figure masks this since the body parameter is described only as 'JSON object'.

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?

The description states a specific verb and resource ('Add SKU to subcollection') and includes the HTTP verb and endpoint path, which makes the operation unambiguous. It stops short of naming the inverse sibling (vtex_delete_sku_from_subcollection) or the reposition tool, but the operation itself is clear.

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

Usage Guidelines3/5

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

The Legacy CMS Portal compatibility warning is a real eligibility constraint that tells an agent when this endpoint will not work. However, it gives no guidance on alternatives (e.g. the imported-file collection tool) or prerequisites such as the SKU already existing, so usage is only partially scoped.

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