Skip to main content
Glama

experiment_plans_update

Change any input; the estimate is recomputed. Changing search_params clears segment_size (call experiment_plans_count_segment again) unless you send segment_size in the same request.

Read estimate.feasible and estimate.problems first. "Not feasible" is a valid, useful answer: each blocking problem's message says why (segment too small, rates too close to separate, sample above the cap, too slow) and what to change. Non-blocking problems are warnings. All rates are proportions (0.05 == 5%), never percentages.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/experiment-plans/{sqid}/

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": {
      "sqid": "<sqid>"
    },
    "name": "experiment_plans_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
sqidYes
offerNoWhat you offer them.
stepsNoEmails per lead (first email + follow-ups), 1-10. Default 2.
personaNoThe person you write to at each company.
mailboxesNoSending mailboxes used by the campaign. Default 3.
target_rateNoProportion, not percent: 0.05 means 5%. Must be strictly between 0 and 1. Defaults to the workspace target reply rate.
segment_sizeNoCompanies available for the experiment. Set by experiment_plans_count_segment, or supply your own count (e.g. an imported list).
expected_rateNoProportion, not percent: 0.05 means 5%. Must be strictly between 0 and 1. Your own assumption for this segment and offer; the sample is sized for it.
question_typeNoicp (does this ICP respond?), offer (does this offer work?), feature (does our ICP need this feature?). * `icp` - Does this ICP respond? * `offer` - Does this offer work? * `feature` - Does our ICP need this feature?
search_paramsNoDiscovery criteria for the segment, the same object as a saved search's params_json / the companies_search query (e.g. {"about": "payroll software", "countries": [{"value": 3, "label": "Germany"}]}). Changing it clears segment_size unless you send segment_size too.
qualification_yieldNoShare of researched companies that qualify and yield a lead, as a proportion (0.5 means 50%). Default 0.5.
segment_descriptionNoWho you are testing, in words: the segment of companies.
last_step_delay_daysNoDays after the last email before the verdict is read. Default 14.
daily_sends_per_mailboxNoEmails per mailbox per workday. null uses the mailbox default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 behavioral burden and does substantial work: it discloses the recompute-on-change side effect, the segment_size-clearing behavior, the meaning of feasible vs. warning problems, and the proportion-not-percent convention. It leaves out permissions/auth requirements and what a failed PATCH returns, so it is strong but not complete.

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 critical rule (change recomputes; search_params clears segment_size) is front-loaded, and the bolded need to check estimate.feasible is easy to scan. The closing method line is useful routing information, though a little of the feasibility guidance overlaps with what the return payload itself would show.

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 15-parameter mutation with no annotations and no output schema, the description covers the hardest things an agent needs: that updates are estimate-recomputing, the hidden coupling between search_params and segment_size, and how to interpret the returned feasibility data. Missing only auth/partial-update semantics to be fully complete.

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 description coverage is 87%, so the schema already explains nearly every parameter, including the search_params/segment_size interaction and the proportion convention that the description repeats. The description adds reinforcement but almost no new parameter meaning beyond the structured fields, making the baseline 3 appropriate.

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 verb ('change any input') and the resource (identified via the PATCH /experiment-plans/{sqid} endpoint) are clear, and the description distinguishes this from the read-only estimate tool by explaining that an update triggers recomputation. It never names the tool's own object in prose, only in the method line, which slightly softens the opening.

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 concrete operational guidance: call experiment_plans_count_segment again after changing search_params, or pass segment_size in the same request to avoid the reset. It also directs the agent to read estimate.feasible/estimate.problems before acting. It stops short of stating when to prefer experiment_plans_estimate or experiment_plans_create instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.