Skip to main content
Glama

Start a randomized self-experiment (pre-registered, schedule drawn up front)

start_experiment

Starts a randomized self-experiment on a nightly sleep or recovery outcome, pre-registering the hypothesis and analysis plan and assigning balanced intervention/control days to test a habit's effect.

Instructions

Starts a randomized self-experiment on one nightly outcome, e.g. 'does no caffeine after noon change my sleep score?'. It PRE-REGISTERS the hypothesis and the analysis plan (stored in the result and the file) and draws the whole schedule up front: each day from the start is an intervention day, a control day, a washout day (the washout days after each intervention day, never analysed) or unassigned (a weekday not in eligible). Eligible days are paired in order and each pair holds one intervention and one control day in random order, drawn by a seeded generator (the seed is stored; the schedule is never redrawn), so the two arms are exactly balanced; a last unpaired day is dropped. The experiment starts tomorrow unless startDate (today or later, at most 60 days ahead) says otherwise; it needs at least 6 intervention and 6 control days (the least that can ever give a verdict) or it is refused. Only one active (upcoming or running) experiment per outcome metric at a time. Outcome metric is the night AFTER each assigned day, one of the per-night values get_baselines and get_tag_effects use: sleepDurationS, sleepScore, hrv, recoveryMorning. Follow it with get_experiment (today's assignment) and log_experiment_day (what really happened), then analyze_experiment after the planned end. Local file ~/.suunto-mcp/experiments.json (SUUNTO_EXPERIMENTS_PATH overrides it); never contacts Suunto, needs no credentials. Output: { saved (summary), experiment: { id, name, intervention, control, metric, days, washout, eligible, startDate, endDate, seed, hypothesis, analysisPlan, schedule: [{ date, arm ('intervention' | 'control' | 'washout' | 'none'), block }], log }, note }. Not read-only (writes the file), not destructive, not idempotent (each call starts another experiment). In demo mode it is kept in memory, and a finished demo experiment is already there.

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": {
      "name": "<name>",
      "intervention": "<intervention>",
      "control": "<control>",
      "metric": "<metric>",
      "days": "<days>"
    },
    "name": "start_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesHow many calendar days the experiment lasts from its start.
nameYesA short name, e.g. 'No caffeine after noon'.
metricYesThe nightly outcome: sleepDurationS, sleepScore, hrv or recoveryMorning (read for the night after each assigned day).
controlYesWhat to do on a control day, e.g. 'usual routine'.
washoutNoDays after each intervention day that are left out, to let carry-over pass (default 0).
eligibleNoWeekdays that may carry an intervention or control day (default: every day), e.g. ['mon','tue','wed','thu'].
startDateNoFirst day, YYYY-MM-DD (default tomorrow; today or later).
interventionYesWhat to do on an intervention day, in plain words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description explains that this writes a local file (~/.suunto-mcp/experiments.json), never contacts Suunto or needs credentials, pre-registers the hypothesis and analysis plan, and uses a stored seed with a schedule that is never redrawn. It also discloses demo-mode behavior and the one-active-experiment limit. These details add substantial behavioral context beyond the readOnly=false, idempotent=false, destructive=false annotations.

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?

The description is front-loaded with the core action and is structured logically from purpose to schedule mechanics to workflow and output. It is long, and the sentence restating that it is not read-only, not destructive, and not idempotent largely repeats the annotations, but the length is mostly justified by the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a randomized experiment scheduler and the absence of an output schema, the description is complete enough for an agent to call it correctly. It covers the scheduling algorithm, minimum-balance refusal rule, concurrency constraint, side effects, and even the exact output object shape.

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 each parameter is already documented, but the description adds relational meaning: washout days are never analysed, eligible weekdays not listed are unassigned, eligible days are paired so the arms are exactly balanced, an unpaired last day is dropped, and startDate may be at most 60 days ahead. It does not add much for the `name` parameter, but overall it meaningfully enriches the schema semantics.

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?

The description states a specific verb and resource: "Starts a randomized self-experiment on one nightly outcome," and gives a concrete example. It distinguishes this creation/start tool from the follow-on get_experiment, log_experiment_day, and analyze_experiment tools by naming the workflow explicitly.

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?

It specifies when to use this tool and what to do next: call it first, then get_experiment for today's assignment, log_experiment_day for what happened, and analyze_experiment after the planned end. It also gives explicit refusal conditions: fewer than 6 intervention and 6 control days, or an already active experiment for the same outcome metric.

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