Skip to main content
Glama

update_variant

Edit or rename a variant's script, tab label, or note while preserving the original text in history. Use it to revise a take or clarify why it changed.

Instructions

Edit or rename a variant: its script, its name (the tab label) or its note. History keeps the old text.

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew tab label, 1-4 words.
noteNoOne line: what changed or why.
scriptNoThe variant's new script.
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
variantYesVariant id from get_session.

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

A3.8/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive mutation, so the safety bar is partly met structurally. The description adds genuinely useful behavior beyond them: 'History keeps the old text' tells the agent prior script/note content is recoverable rather than destroyed, and the field list implies partial updates rather than full replacement.

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 clauses, mutation scope front-loaded before the history note, with zero redundant wording. Every phrase either identifies the editable fields or discloses a behavioral fact.

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 five-parameter mutation tool with no output schema, the description covers what can be changed and that history is preserved, which is the key risk an agent needs to know. Minor gaps remain (whether omitted fields are left untouched versus cleared, and whether the variant id must come from get_session), but these are largely handled by the schema.

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?

With 100% schema description coverage, the schema already documents all five parameters including the 1-4 word name constraint and the session path/id forms. The description contributes only the high-level framing of which three fields are editable, which matches the schema rather than adding new semantics.

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 opens with a specific verb ('Edit or rename') and resource ('a variant') and enumerates the three mutable fields (script, name/tab label, note), so the agent knows exactly what the tool changes. It does not explicitly distinguish itself from near-siblings like promote_variant or use_post_variant, but the field-level scope makes the purpose unambiguous.

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 only implied: the agent can infer this is the tool for modifying an existing variant's content or label, but there is no statement of when to prefer it over promote_variant/use_post_variant, no prerequisite (e.g. get_session for the variant id), and no exclusion. That is adequate but leaves routing to inference.

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