Skip to main content
Glama

select-experiment

Select the winning experiment cluster or cherry-pick stories after reviewing multi-cluster user-story output, then store the choice for PDD generation.

Instructions

Select the winning experiment cluster (or cherry-pick stories) after reviewing multi-cluster output from the user-stories robot.

When UserStoriesRobot generates multiple experiment clusters (because experimentClusterCount > 1 in phase2Context), the PM reviews the competing solution hypotheses and selects the best approach.

Three selection modes:

  1. WHOLE CLUSTER: Pass a single 'clusterId' to accept one cluster entirely.

  2. CHERRY-PICK: Pass an array of 'storyIds' from any cluster to build a hybrid.

  3. CLEAR: Pass neither to remove any previous selection.

The selection is stored in context/experiment-selection.json and read by 'generate-pdd' when assembling the final PDD.

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": {
      "productSlug": "<productSlug>"
    },
    "name": "select-experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
storyIdsNoCherry-picked story IDs from any cluster, e.g. ['US-A-001', 'US-B-003']. Mutually exclusive with clusterId.
clusterIdNoThe winning cluster ID, e.g. 'cluster-A'. Mutually exclusive with storyIds.
rationaleNoPM's rationale for this selection — stored for traceability
productSlugYesProduct slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it reveals the side effect (writes context/experiment-selection.json), its downstream reader, and that CLEAR mode removes a prior selection. It does not cover overwrite semantics for repeated calls, validation/failure behavior for bad IDs, or what the call returns, which keeps it below a 5.

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?

Purpose is front-loaded in the first sentence, context follows, then a numbered list of modes, then the storage/consumer note. Roughly a hundred words with no filler; even the phase2Context parenthetical earns its place by explaining when the situation arises.

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?

There is no output schema and no annotations, so the description must stand alone, and it covers purpose, precondition, mode semantics, persistence location, and downstream use. Minor gaps remain around error handling for unrecognized clusterId/storyIds and confirmation of what a successful call returns.

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 coverage is 100%, so 3 is the baseline, but the description adds real meaning by mapping each parameter to a behavioral mode: clusterId = accept a whole cluster, storyIds = hybrid cherry-pick from any cluster, neither = clear the selection. That 'pass nothing' semantics is not expressed anywhere in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Select the winning experiment cluster (or cherry-pick stories)") and names the downstream consumer, generate-pdd, which cleanly separates it from the PDD-assembly sibling. An agent can tell what this does without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition (only meaningful when UserStoriesRobot produces multiple clusters, i.e. experimentClusterCount > 1) and enumerates three mutually distinct selection modes with the exact argument shape for each. It also notes which sibling reads the result, so the agent knows the ordering constraint relative to generate-pdd.

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