Skip to main content
Glama

Set Active Variant

set_active_variant
Idempotent

Sets the project's active variant for the specified content type. Does not delete or rewrite the other variants.

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>"
    },
    "name": "set_active_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and readOnlyHint=false, so the safety profile is known; the description nonetheless adds scope information by stating it 'Does not delete or rewrite the other variants', which clarifies the blast radius of the mutation. It stops short of stating permission requirements, effect on already-published output, or what happens when the variantId doesn't belong to the content type.

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 short sentences with the primary action front-loaded and the side-effect disclaimer second; nothing is wasted and nothing is buried.

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?

An output schema exists, so return values need no explanation, and the annotations cover idempotency and destructiveness. Still, for a three-parameter mutation the definition leaves open validity constraints (variant must exist and match the content type) and the practical consequence of switching the active variant.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 33%: only projectId carries a description (including the useful generationId alias). Neither variantId nor the contentType enum is explained in the schema, and the description adds nothing beyond echoing 'active variant' and 'content type' — it never says the variant must already exist or how the four content-type values map to variants.

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 names a specific verb and resource ('Sets the project's active variant') and scopes it by content type, which is concrete enough to act on. It does not name or differentiate from nearby siblings such as create_variant, delete_variant, or apply_* tools, so the boundary between 'set active' and 'apply' is left implicit.

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 when-to-use guidance and no named alternative; the reader must infer that this is the selection/switching operation rather than creation or deletion. Given a sibling catalog containing create_variant, delete_variant, duplicate_variant and several apply_* tools, a single routing sentence would have removed real ambiguity.

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.