Skip to main content
Glama

Edit one account version

set_draft_variant

Replace or remove one account override in a draft using the expected revision; omitted fields inherit base content, while null restores inheritance and invalidates the preview.

Instructions

Replace one selected account override using current expectedRevision. Omitted override fields inherit base content; variant:null removes the override and restores base inheritance. Preserves other accounts, increments the draft revision and invalidates its preview. Never publishes.

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": {
      "draftId": "<draftId>",
      "expectedRevision": "<expectedRevision>",
      "accountId": "<accountId>",
      "variant": "<variant>"
    },
    "name": "set_draft_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYes
variantYes
accountIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses substantial behavior: optimistic concurrency via expectedRevision, field-level inheritance for omitted override fields, variant:null as an override-removal/restore-inheritance operation, that other accounts are preserved, that the draft revision increments, and that the preview is invalidated. It also confirms the operation never publishes, which is the single most important side-effect boundary here.

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?

Four short sentences, each carrying distinct information: action plus concurrency token first, then inheritance semantics, then side effects, then the publish boundary. No repetition of the schema or annotations and nothing extraneous.

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?

With an output schema present, return values need not be described, and the description covers the mutation semantics, inheritance model, and side effects thoroughly for a 4-parameter nested write. The remaining omissions are what happens on a stale expectedRevision and whether special write permissions are required.

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

Parameters4/5

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

Schema description coverage is 0% for the four top-level parameters, so the description has to carry the burden and largely does: it explains expectedRevision as a concurrency token, variant:null as an explicit removal signal, and 'one selected account override' ties accountId to scope. It does not explain the draftId parameter's expected source or the revision-mismatch failure behavior, leaving one gap at 0% schema coverage.

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 precise verb and resource: 'Replace one selected account override' for a specific account within a draft. It matches the title ('Edit one account version') and the closing 'Never publishes' distinguishes it from publish_draft. It stops short of naming the sibling it substitutes for (e.g. update_draft), so differentiation is left partly to inference.

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 context is implied rather than stated: the agent can infer this is the per-account variant write path, and 'Never publishes' implicitly rules out the publish tools. There is no explicit when-to-use / when-not-to-use guidance versus update_draft, create_draft, or get_draft_variants, and no stated preconditions such as needing a fetched current revision.

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