Skip to main content
Glama

Update Experiment

update_experiment
Idempotent

Update a product experiment's Build-Measure-Learn stage, outcome, and next decision. Use experiment id from list_experiments; record validated/invalidated and pivot/persevere.

Instructions

Update a PM experiment — advance its state and record the outcome — and return it. state ∈ hypothesis|build|measure|learn; verdict ∈ validated|invalidated; decision ∈ pivot|persevere. Resolve the id via list_experiments; only id is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesExperiment id, from list_experiments (required).
stateNoBuild-Measure-Learn stage (optional).
titleNoNew title (optional).
metricNoNew metric; null clears it (optional).
resultNoFree-text result / what you learned; null clears it (optional).
targetNoNew target; null clears it (optional).
verdictNoOutcome (optional).
decisionNoWhat you'll do next (optional).
hypothesisNoNew hypothesis; null clears it (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.14
  2. Removedv0.1.12
  3. Addedv0.1.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already supply idempotentHint=true and destructiveHint=false. The description adds behavioral detail by enumerating valid state, verdict, and decision values, and by stating that the updated experiment is returned. It does not contradict annotations, though it doesn't discuss side effects on unspecified fields.

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?

Three sentences, front-loaded with the main action, and every sentence contributes: behavior, allowed values, and prerequisite. No filler.

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?

The description covers the core behavior, valid state values, and required input, and says the updated experiment is returned. Given the rich schema with 100% coverage, it is sufficiently complete; only a little detail on what the returned object contains is absent.

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 the schema descriptions already cover all parameters, including enums and null-clearing behavior. The description reiterates the enums and the required-id constraint, adding marginal value beyond 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?

Description uses a specific verb ('Update') and resource ('PM experiment'), and clarifies the action by saying it advances state and records outcome. This clearly distinguishes it from create_experiment and list_experiments.

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?

Gives clear context that this tool updates a PM experiment and states a prerequisite: resolve the id via list_experiments. It explicitly notes only id is required, but does not mention exclusions or alternative update tools.

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