Skip to main content
Glama

add-block

Generates a JSONC snippet for a VTEX IO block, validating props against the block schema, ready to paste into blocks.jsonc.

Instructions

Generate a JSONC snippet for a VTEX IO block ready to paste into blocks.jsonc. Validates props against the block schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propsNoProps to set on the block. Keys must match valid prop names for the block.
blockIdNoUnique block identifier appended after #. Example: if blockId is "hero", result is "rich-text#hero". Defaults to the blockName.
childrenNoList of child block references (e.g. ["rich-text#title", "image#hero"])
blockNameYesVTEX IO block name to generate (e.g. "rich-text", "flex-layout.row", "shelf", "image", "info-card")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are present, so the description carries the disclosure burden. It usefully states that the tool produces a paste-ready snippet and validates props. However, it does not describe behavior on invalid props, whether schemas are fetched remotely, or any other side effects.

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

Conciseness5/5

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

Two sentences, no filler; the primary action and output are front-loaded, and validation behavior is appended as a secondary clause.

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

Completeness4/5

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

For a generator tool with fully-described parameters, the description is mostly complete: it identifies input, output, and validation. It lacks explicit error/validation-failure behavior, but that's a minor gap given the simple scope.

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 each parameter already has a description (blockName examples, blockId # suffix, children references). The tool description adds no parameter-specific meaning beyond that, so baseline 3 applies.

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

Purpose5/5

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

The description names the action ('Generate'), the resource ('VTEX IO block'), and the exact output form ('JSONC snippet ... ready to paste into blocks.jsonc'). It also mentions prop validation, which separates it from scaffold/lookup siblings.

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 context is clear: use when you need a block snippet for blocks.jsonc. But there is no explicit when-not-to-use or comparison with siblings such as lookup-block-props or scaffold-vtex-app.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.