Skip to main content
Glama
VTEX MCP Server

VTEX MCP Server

by Volve-Tech

vtex_associate_product_with_trade_policy

Associates an existing trade policy with a product in VTEX, linking sales channel availability so buyers see the product in the correct storefront.

Instructions

[POST] Associate product with trade policy | Category: Trade policy | Path: /api/catalog/pvt/product/:productId/salespolicy/:tradepolicyId | Description: Associates an existing trade policy with a product. ## Permissions Any user or API key must have at least one of the | Path params: productId, tradepolicyId

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": {
      "productId": "<productId>",
      "tradepolicyId": "<tradepolicyId>"
    },
    "name": "vtex_associate_product_with_trade_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (JSON object)
productIdYesPath parameter: productId
tradepolicyIdYesPath parameter: tradepolicyId

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?

With no annotations supplied, the description must carry the behavioral burden. It does disclose the HTTP verb (POST), the endpoint path, and that a permission/API-key requirement applies, which is useful beyond structured data. But the permissions sentence is truncated mid-clause ('must have at least one of the |'), and there is no disclosure of idempotency, error behavior on duplicate association, or whether the operation is reversible.

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

Conciseness2/5

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

The text is pipe-delimited auto-generated metadata that repeats the tool name, category, path, and then a 'Description:' field restating the same intent. The trailing permissions clause is cut off mid-sentence, leaving dangling fragments that add noise rather than information.

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 endpoint with no annotations and no output schema, the definition leaves too much unstated: the purpose of the body object, the response shape, and duplicate/failure semantics are all absent, and the permissions section is broken. What is present is accurate but insufficient for confident invocation.

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 the baseline is 3. The description restates the two path parameters (productId, tradepolicyId) but adds no syntax, format, or example beyond what the schema already provides, and the nested 'body' parameter remains an unexplained generic JSON object in both places.

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: 'Associates an existing trade policy with a product', backed by the HTTP method and endpoint path. The agent can tell this is a write/association operation distinct from read siblings like vtex_get_trade_policies_by_product_id. It does not explicitly name the inverse sibling vtex_remove_product_from_trade_policy, so it falls 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 Guidelines3/5

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

The word 'existing' implies a prerequisite (the trade policy and product must already exist), and a permissions section signals that auth/API-key scoping matters. However, there is no explicit when-to-use guidance, no mention of how this differs from the removal or listing siblings, and no note about behavior when the association already exists.

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