Skip to main content
Glama

pick_variant

Compares composition variants and records the person's chosen version as good while marking alternatives bad, so later feedback can identify their preferences.

Instructions

A person compared variants and picked one (Anime.js keeps versions to switch between; here the choice is taste): the picked composition is marked good and every other one bad, on the same scene or layer when given (else the whole composition), each mark naming what it was compared with. They become cases like any mark, so after a few picks distill can say what the person keeps choosing. Make the variants first as separate compositions (copies with one thing changed: a curve, a stagger, a timing).

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": {
      "variants": "<variants>",
      "pick": "<pick>"
    },
    "name": "pick_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWhy, in the person's words
pickYesThe one the person chose (one of variants)
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
layerNoThe element compared (same id in every variant)
sceneNoThe nested composition compared (same id in every variant)
stillNoRender the judged frame next to each mark
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
variantsYesThe compositions compared
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
    • changedInput schema / properties / layer / description
      Previous value: -"The layer compared (needs scene)"New value: +"The element compared (same id in every variant)"
    • changedInput schema / properties / scene / description
      Previous value: -"The scene compared (same id in every variant)"New value: +"The nested composition compared (same id in every variant)"
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent write, and the description usefully adds the side effects: the chosen composition is marked good while every other variant is marked bad, and those marks become cases that distill later reads. It does not disclose whether repeated calls stack duplicate marks or what the response contains, which matters given idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is relevant but delivered as one long, comma-heavy sentence with stacked parentheticals, so the action is not front-loaded and the prerequisite only appears at the very end. Nothing is outright filler, but the ordering and density make it slower to parse than it needs to be.

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 ten-parameter mutation with no output schema, the description covers what it changes, the scoping fallback, and the downstream consequences, which is close to sufficient. What is missing is the return shape and the duplicate-mark behavior, the two gaps an agent would most want filled before calling it twice.

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 100%, so all ten parameters are already documented in the schema, setting the baseline at 3. The description adds real meaning for two of them by explaining that scene/layer scope the comparison to one element or nested composition and that omitting them falls back to the whole composition; the remaining parameters (basis, confidence, feedback, still) are left entirely to the schema.

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 states a specific action: record a comparison outcome so the picked composition is marked good and all others marked bad, scoped to a scene or layer. It distinguishes the tool from Anime.js-style version switching ("here the choice is taste") and names downstream consumers (cases, distill). It is clear but the core verb is buried behind a narrative opening sentence.

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 gives an explicit precondition — build the variants first as separate compositions, copies with one thing changed (a curve, a stagger, a timing) — and a usage pattern (after a few picks, distill can infer preference). It does not name an alternative sibling such as compare for the case where nothing was actually picked, so the routing is clear but not exclusive.

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

Deploy Server

Other Tools