Skip to main content
Glama
VTEX MCP Server

VTEX MCP Server

by Volve-Tech

vtex_get_attachment_by_id

Fetches information about a registered VTEX attachment using its attachment ID, enabling you to inspect attachment details and configuration.

Instructions

[GET] Get attachment by ID | Category: Attachment | Path: /api/catalog/pvt/attachment/:attachmentid | Description: Gets information about a registered attachment. >⚠️ To understand the specific syntax for Assembly Options attachments, read the [Assembly Options](https://help.vtex.com/en/tutorial/assembly-option | Path params: attachmentid

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": {
      "attachmentid": "<attachmentid>"
    },
    "name": "vtex_get_attachment_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachmentidYesPath parameter: attachmentid

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?

With no annotations provided, the description carries the full disclosure burden, and it delivers little: '[GET]' and 'Gets information' weakly imply a read, but nothing is said about authentication, rate limits, error behavior, or what happens with unknown attachment IDs. The Assembly Options warning adds a small behavioral hint about syntax complexity, but the overall profile of the call remains undocumented.

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?

It is short and front-loads 'Get attachment by ID', but the body is a pipe-delimited dump of metadata fields (Category, Path, Description, Path params) that duplicates the name and schema. The markdown link is truncated mid-URL ('...assembly-option | Path params'), leaving broken text that hurts readability.

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 tool with no annotations and no output schema, the description should explain what an attachment record contains or what a successful response looks like; instead it stops at 'Gets information about a registered attachment'. The only substantive addition is an external doc link, leaving key context missing for correct invocation and interpretation.

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 the single parameter is already documented as 'Path parameter: attachmentid'. The description's trailing 'Path params: attachmentid' merely restates this and adds no format, constraint, or sourcing guidance beyond what the schema provides, so the baseline 3 applies.

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: '[GET] Get attachment by ID', and 'Gets information about a registered attachment'. Combined with the explicit path /api/catalog/pvt/attachment/:attachmentid, an agent can tell this is a single-attachment read, distinct from sibling list tools like vtex_get_sku_attachments_by_sku_id. It does not explicitly name any sibling, so it stays just below 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 Guidelines2/5

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

There is no statement of when to use this tool versus alternatives (e.g., the SKU-scoped attachment list tools), and no preconditions or exclusions. The only guidance is a pointer to external Assembly Options documentation for one special-case syntax, which does not tell the agent when to select this tool over its siblings.

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