Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Optimize Doe

optimize_doe

Generate factorial, Box-Behnken, central composite, LHS, Sobol, or Halton designs, then fit response surfaces with ANOVA and bounded extrema for reproducible design-of-experiments studies.

Instructions

Generate factorial/fractional, Box-Behnken, central composite, LHS, Sobol or Halton designs; fit coded response surfaces with ANOVA and bounded quadratic extrema. Grammar: numbers, names, + - * / ^ (**), parentheses, whitelisted math calls; no comparisons inside expressions. Variables are plain numbers in the units you choose; the tool does not track units inside expressions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "optimize_doe"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNoResponse fit: linear, interaction or quadratic, e.g. 'quadratic'; insufficient-rank designs return a structured refusal.quadratic
seedNoDeterministic random seed, e.g. 0; integer 0..4294967295, echoed in the result.
alphaNoCCD axial distance, e.g. 'rotatable' or '1.5'; numeric range 1..10. Face-centered always uses one.rotatable
modelNoModel expression in natural factor units, e.g. 'x*x+y'; '' omits simulation. Exclusive with response inputs.
designNoDesign, e.g. 'full_factorial'; also fractional_iii/iv/v, box_behnken, ccd_face/circumscribed/inscribed, lhs, sobol, halton.full_factorial
levelsNoFull-factorial integer levels per factor, e.g. '[3,4]'; 2..10 each, at most 4096 runs; '' uses two each.
factorsNoOne to six factor ranges as JSON {"x":[0,10],"y":[1,3]} or records x,0,10;y,1,3.
samplesNoSpace-filling row count 2..4096. Sobol balance requires power-of-two rows.
responsesNoOptional JSON response number list, exactly one value per generated run in original order.
generatorsNoPositive fractional generators on letters A..F, e.g. 'D=ABC'; '' chooses the smallest fraction meeting resolution.
time_limitNoWall-clock budget with time units, e.g. '10 s'; supported 0.001..60 s, shared by all solver stages.10 s
center_pointsNoCenter replicates for factorial/response-surface designs, e.g. 3; 0..100. Space-filling designs ignore this setting.
lhs_candidatesNoMaximin Latin hypercube candidates, e.g. 8; integer 1..32. Comparisons count against the shared work budget.
responses_fileNoUTF-8 one-column CSV/TXT path, e.g. 'response.csv'; optional header response. '' omits; workspace read policy applies.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Without annotations, the description carries the full burden. It discloses expression grammar constraints and that units are not tracked, which are useful behavioral traits. However, it omits safety profile (e.g., read-only nature), determinism, and failure behavior, leaving gaps for a 14-parameter tool.

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?

Two dense sentences plus a grammar note, front-loaded with the core purpose. Every sentence adds useful information without redundancy.

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?

Given 14 parameters, an output schema, and high schema coverage, the description is largely complete for an agent to understand the tool's scope. It covers the main design types and expression constraints, though it could mention that many parameters are optional.

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 the baseline is 3. The description adds grammar rules for expressions (operators, no comparisons, whitelisted calls) that are not fully detailed in the schema, improving understanding of the model parameter.

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 description names specific verbs (generate, fit) and concrete design families (factorial/fractional, Box-Behnken, CCD, LHS, Sobol, Halton) plus response-surface fitting. It is highly specific about what the tool does, though it does not explicitly contrast with sibling optimization tools.

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

Usage Guidelines3/5

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

No explicit when-to-use guidance or alternatives are given. Usage is implied by the tool's name and the design families, but an agent must infer that this is for design-of-experiments workflows rather than general optimization.

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

Deploy Server

Other Tools