Skip to main content
Glama
VTEX MCP Server

VTEX MCP Server

by Volve-Tech

vtex_get_subcollection_by_collection_id

Retrieves a subcollection using a collection ID for VTEX collections configured through the Legacy CMS Portal.

Instructions

[GET] Get subcollection by collection ID | Category: Subcollection | Path: /api/catalog/pvt/collection/:collectionId/subcollection | 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: collectionId

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": {
      "collectionId": "<collectionId>"
    },
    "name": "vtex_get_subcollection_by_collection_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
collectionIdYesPath parameter: collectionId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose that this is a read ([GET]) and flags the Legacy-vs-Beta compatibility restriction, which is substantive. It omits what happens when a Beta-module collection ID is passed (error vs empty), any auth requirements, and the shape of the returned subcollection, which is a notable gap given there is no output schema.

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 pipe-delimited metadata blocks (Category, Path, Description, Path params) are front-loaded with the operation name, which helps scanning. But they are machine-generated scaffolding, and 'Path params: collectionId' duplicates both the schema and the required-field list, so several tokens earn nothing.

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 one-parameter read endpoint this is close to sufficient: purpose and the Legacy-module restriction are stated. Still missing is what a caller receives back and behavior on unsupported collection types, and with no output schema those gaps fall entirely on the description.

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?

There is a single parameter with 100% schema description coverage, so the structured field already documents it; the description only echoes 'Path params: collectionId'. Per the baseline for fully-covered schemas, this is adequate without adding meaning, and it does correctly signal that the value is a path segment rather than a body field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The leading '[GET] Get subcollection by collection ID' states a verb and resource, so the operation is identifiable. However, it largely restates the tool name and gives no distinguishing detail versus the sibling 'vtex_get_subcollection_by_subcollection_id', which reads almost identically apart from the identifier used.

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 description supplies one genuine usage constraint: the endpoint only works with collections configured through the Legacy CMS Portal, not the Beta Collection module. That is a meaningful when-to-use condition, but there is no guidance on when to pick this over the subcollectionId variant or the parent collection tool.

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