Skip to main content
Glama

run-workflow-campaign

Launch optimizer-driven campaigns on a loaded workflow with BayBE, Ax, or NIMO, using defined parameters, objectives, constraints, batch size, and repeat iterations.

Instructions

Run the loaded workflow with optimizers

:param optimizer_type: Optimizer type in ["baybe", "ax", "nimo"]
:param parameters: List of parameter definitions    [
    {"name": "x1", "type": "range", "value": 10.0},
    {"name": "x2", "type": "fixed", "bounds": [0.0, 10.0]},
    {"name": "c1", "type": "choice", "values": ["A", "B", "C"]},
]
:param objectives: List of objective definitions    [
    {"name": "obj_1", "minimize": True},
    {"name": "obj_2", "minimize": False},
]
:param repeat: Number of iterations
:param batch_size: Batch size
:param steps: Steps for each iteration {"step_1": {"model": "Sobol", "num_samples": 5}, "step_2": {"model": "BoTorch"}}
:param parameter_constraints: List of parameter constraints ["x1 + x2 <= 15.0"]
:param existing_data: Existing data filename, use `load-workflow-data` to get the filename from workflow id

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": {
      "optimizer_type": "<optimizer_type>"
    },
    "name": "run-workflow-campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
repeatNo
batch_sizeNo
objectivesNo
parametersNo
existing_dataNo
optimizer_typeYes
parameter_constraintsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It never says whether the run is blocking or asynchronous, whether a job/workflow handle is returned, how long an optimizer campaign may take, how it interacts with stop-current-workflow or abort-pending-workflow, or what happens to existing campaign state on re-run.

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 dense rather than padded, but it is a raw docstring dump with mangled line structure: multi-line JSON examples are collapsed into single lines mid-sentence, so the parameters are hard to scan. The one-line purpose is front-loaded, but no summary line precedes the parameter dump to frame the operation.

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

Completeness2/5

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

For an 8-parameter mutation tool with zero annotation coverage, zero schema descriptions, and no output schema, the description covers only parameter shapes. It never states the return value (job id, campaign results, best trial), error behavior for invalid optimizer_type, or how the caller observes progress given the sibling execution-status tool.

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?

With 0% schema description coverage across 8 parameters, the description is the only documentation and it does real work: it gives the optimizer_type enum (["baybe", "ax", "nimo"]), structural examples for parameters, objectives, and parameter_constraints, and points to load-workflow-data for existing_data. It loses a point because the examples are not always faithful to the schema — the steps example is a nested dict while the schema types steps as a string, and the "fixed" parameter example uses "bounds" where the range example uses "value" — which risks malformed calls.

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

Purpose3/5

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

"Run the loaded workflow with optimizers" gives a verb and resource, but "loaded workflow" is never defined (loaded from where, by which sibling such as load-workflow-script or submit-workflow-script?), and the description does not distinguish this from run-workflow-kwargs or run-workflow-repeat. The optimizer framing hints that this drives an optimization campaign, but an agent cannot be confident this is the right entry point without reading 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 Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives among the many run-*/stop-*/*workflow* siblings. The only routing hint is inside the existing_data parameter ("use `load-workflow-data` to get the filename"), which is a parameter-level prerequisite rather than tool-selection guidance.

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