Skip to main content
Glama

design_variants

Generate 2–3 alternative replacement nodes for a design block so designers can compare and choose side by side in the canvas, then apply the selected option while keeping the others available.

Instructions

Offer 2–3 alternative options for one block and let the designer pick side by side in the canvas. Each option is a full replacement node for that block; the chosen one is applied, the others stay available in the document.

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": {
      "blockId": "<blockId>",
      "options": "<options>"
    },
    "name": "design_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
blockIdYesNode id of the block being re-designed
optionsYes2–3 replacement DesignNode objects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does usefully disclose that only the chosen option is applied and that unchosen options persist in the document, which signals human-in-the-loop, non-destructive behavior. However, it never says whether the call blocks until a selection is made, whether an open canvas is required, or what happens if the designer picks nothing.

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?

Two tight sentences with the core action front-loaded and the mechanics (full replacement, chosen applied, others retained) following. The phrase 'side by side in the canvas' is slightly atmospheric but still conveys the selection UX, so nothing is genuinely wasted.

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 two-parameter tool with a fully described schema and no output schema, the description covers the action and the fate of the options. The notable gap is the return value: with no output schema and no mention of what identifiers come back, an agent cannot tell how to reference the chosen option or the retained ones in a follow-up call.

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 blockId and options are already documented in the schema. The description adds only the constraint that options are complete replacement nodes rather than diffs, which is a modest clarification beyond the schema's 'replacement DesignNode objects'. Baseline 3 is appropriate.

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?

States a specific verb+resource: it offers 2-3 alternative options for one block and lets the designer pick. The second sentence clarifies that each option is a full replacement node, which sharpens what 'option' means. It does not name or differentiate itself from likely siblings like design_patch or design_commit, so it stops 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?

Usage is implied: reach for this when you want the designer to choose between competing designs rather than applying a single patch. There is no explicit when-not guidance and no reference to design_patch or design_commit as alternatives for the direct-edit case, so the agent must infer the boundary.

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