Skip to main content
Glama

Edit an A/B variant

update_variant
Idempotent

Change one variant (label A-D) of a step: subject, body, content_format, or active=false to stop sending it while keeping its stats.

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": {
      "id": "<id>",
      "step_id": "<step_id>",
      "label": "<label>"
    },
    "name": "update_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCampaign id (uuid).
bodyNo
labelYes
activeNo
step_idYes
subjectNo
content_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds real value beyond that by disclosing the soft-disable semantics of active=false (sending stops, stats survive), though it says nothing about partial-update behavior, permissions, or whether omitted fields are preserved.

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?

A single sentence front-loads the verb and resource before listing fields, with no filler. The field enumeration is long but each item corresponds to a real parameter, so little could be cut without losing information.

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?

With seven parameters, low schema coverage, and no output schema, the definition covers the optional fields well but omits the required id/step_id semantics and any statement about return values or partial-update behavior. Annotations handle the safety dimension, so the gaps are moderate rather than severe.

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 only 14%, so the description has to carry the burden. It does explain the mutable optional fields (subject, body, content_format, active) and the A-D label range, but the two required identifiers, id and step_id, are never described, leaving the most essential inputs undocumented.

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 uses a specific verb ('Change') tied to a precisely bounded resource ('one variant (label A-D) of a step') and enumerates the mutable fields, so an agent can immediately tell this is an edit-one-variant operation rather than add_variant or delete_variant. It stops short of explicitly naming those siblings, so it is clear but not fully differentiated by name.

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?

It supplies a concrete usage pattern: set active=false to stop sending while keeping stats, which implicitly steers the agent away from delete_variant when history must be preserved. There are no explicit exclusions or prerequisites, but the operative context is clear.

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.