Skip to main content
Glama

create_variants

Add alternative script versions as separate tabs above the teleprompter so the user can compare options and pick a main take instead of overwriting the original script.

Instructions

Add alternative versions of the script (e.g. 'Punchy hook', 'Story first'). Each shows up as a tab above the teleprompter; the user can read any of them and pick one as main. Use this instead of overwriting the main script when offering options.

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": {
      "session": "<session>",
      "variants": "<variants>"
    },
    "name": "create_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
variantsYesThe variants: [{name, script, note}].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the write-but-non-destructive profile (readOnlyHint=false, destructiveHint=false), so the bar is lower, and the description still adds real value by explaining the user-visible outcome: each variant appears as a tab above the teleprompter and can be promoted to main. It leaves unstated whether an existing variant with the same name is replaced or duplicated, and whether there is a cap on variant count.

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 action and followed by the user-visible effect and the routing rule. Every sentence carries distinct information and there is no filler.

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 two-parameter additive mutation with no output schema, the description covers what is created, how it surfaces to the user, and why not to use a script overwrite instead. The remaining gap is edge-case behavior on repeated calls or name collisions, which is minor for this tool's complexity.

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 every field including session, name, note and script is already documented in the schema; the baseline of 3 applies. The description's example variant names hint at the expected tone/format of the name field but add no syntax or constraint detail beyond what the schema provides.

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 and resource ('Add alternative versions of the script') and illustrates it with concrete examples ('Punchy hook', 'Story first'), so the agent knows exactly what gets created. It does not differentiate itself from the similarly named sibling create_post_variants, leaving that distinction to be inferred.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives an explicit usage rule: 'Use this instead of overwriting the main script when offering options,' which names an alternative behavior and the condition that selects it. It stops short of stating when not to use it (e.g., against delete_variants or create_post_variants) or whether repeated calls accumulate variants.

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