Skip to main content
Glama

Delete Variant

delete_variant
Destructive

Permanently deletes the specified variant and all of its content and translations. Cannot be undone. Deleting the active variant promotes the newest remaining variant, which is returned as promotedVariant.

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": {
      "projectId": "<projectId>",
      "contentType": "<contentType>",
      "variantId": "<variantId>",
      "confirm": "<confirm>"
    },
    "name": "delete_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true: confirms the user explicitly asked to delete this variant.
projectIdYesProject id (list_projects/get_project); design tools call it generationId.
variantIdYes
contentTypeYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes
widgetDataJsonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / contentType / enum
      Previous value: -[
      -  "screenshots",
      -  "socialGraphics",
      -  "promoVideo",
      -  "mockups",
      -  "website"
      -]New value: +[
      +  "screenshots",
      +  "socialGraphics",
      +  "promoVideo",
      +  "website"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, yet the description still adds substantial context: the cascade to content and translations, that the operation is irreversible, and that deleting the active variant promotes the newest remaining one and returns it as promotedVariant — a behavioral side-effect no annotation conveys.

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?

Three short sentences, front-loaded with the destructive action and its scope before the side-effect. Every sentence carries unique information; nothing is redundant padding.

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 destructive four-parameter tool the description covers consequences, irreversibility, and the promotion behavior, and an output schema exists so return values needn't be spelled out. The only remaining gap is the undocumented contentType/variantId parameters, which is minor for UUID/enum identifiers.

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 50%: projectId and confirm are well documented in the schema, while variantId and contentType have no description anywhere. The description mentions 'the specified variant' but adds no meaning about the variantId or the contentType enum values, so it does not compensate for the coverage gap.

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?

States a specific verb and resource ('permanently deletes the specified variant') plus the scope of the deletion ('all of its content and translations'), which distinguishes it from sibling deletes such as delete_assets and delete_project that target other resources.

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 irreversibility warning and the promotion side-effect imply this is a last-resort operation, but the description never says when to choose deletion versus alternatives such as set_active_variant or duplicate_variant, nor does it state the prerequisite that confirm must be true (that lives only in the schema).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.