Skip to main content
Glama
VTEX MCP Server

VTEX MCP Server

by Volve-Tech

vtex_get_collection_by_id

Retrieves a VTEX collection by its collection ID, enabling you to inspect details for collections configured through the Legacy CMS Portal.

Instructions

[GET] Get collection by ID | Category: Collection | Path: /api/catalog/pvt/collection/:collectionId | 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_collection_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
collectionIdYesPath parameter: collectionId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does add meaningful context beyond the schema: the existence of two collection configuration models and the restriction to Legacy CMS collections, which is the kind of compatibility constraint an agent needs. It says nothing about error behavior when the collection is missing, permissions required, or what the response contains.

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?

The content is short and the compatibility warning is easy to spot. It is weakened by pipe-delimited boilerplate tags ("[GET]", "Category:", "Path:", a nested "Description:") and a trailing "Path params: collectionId" that duplicates the schema.

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 tool with no output schema and no annotations, the definition covers the essential compatibility caveat. It remains incomplete on what the endpoint returns and on the relationship to sibling collection tools such as vtex_get_subcollection_by_collection_id and vtex_get_products_from_a_collection.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents collectionId. The description only repeats "Path params: collectionId" and adds no format, example, or sourcing guidance (e.g., where to obtain the ID). Baseline 3 applies when the schema does the heavy lifting.

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 description states the verb+resource ("Get collection by ID"), but that mostly restates the tool name. The one genuinely distinguishing element is the scope caveat that it is compatible only with collections configured through the Legacy CMS Portal, which narrows the purpose beyond a tautology. Without that caveat the description would carry no information the name does not already provide.

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?

Usage is only implied: the warning that collections can be configured via Legacy CMS Portal or the Beta Collection module, and that this endpoint only works with Legacy ones, tells an agent when it does and does not apply. However, no alternative endpoint is named for Beta-module collections, and no prerequisites (auth scope, whether the ID must exist) are stated.

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