Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

study_parametric

Create and solve a parameter sweep study in COMSOL Multiphysics by defining parameter names, values, units, sweep type, and optional solver step.

Instructions

Create a parameter sweep study (Parametric step + solver) and solve it.

Args: pname: parameter name(s) to sweep, e.g. "k" or ["k", "Q0"]. plist: parameter values, e.g. ["1", "5", "10"], "1,5,10" or "range(1,1,10)". Values may include units ("1[W/(mK)]"). punit: optional unit(s) for the values, e.g. "W/(mK)". sweep_type: "Parametric" (default), "MaterialSweep", "BatchSweep", ... study: study tag (None = automatic "std_param1"). solver_step_type: physical solver step appended after the sweep (default "Stationary"; use "Transient" for transient sweeps). solver_step_properties: properties for that solver step. solve: run the study after creating it (default true). generate_plots: generate default plot groups. label: optional display label. model: model name/tag (None = current model).

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": {
      "pname": "<pname>",
      "plist": "<plist>"
    },
    "name": "study_parametric"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
modelNo
plistYes
pnameYes
punitNo
solveNo
studyNo
sweep_typeNoParametric
generate_plotsNo
solver_step_typeNoStationary
solver_step_propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It usefully discloses that the tool solves the study by default (solve=true) and can generate plot groups, which are real side effects. However, it does not state whether an existing study tag causes an error, what the return value is, or what the runtime implications of solving are for a potentially long-running operation.

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 one-line summary is front-loaded and states the two-phase behavior before the Args block, and the per-parameter lines are terse with inline examples rather than prose. The docstring format is efficient for 11 parameters, though the elided sweep_type list is wasted space that conveys no information.

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

Completeness3/5

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

For a complex, mutating, multi-phase tool with 11 parameters and no output schema, the definition covers inputs adequately but omits what the call returns (presumably the study tag) and any error or conflict behavior when a study name collides. An agent could invoke it correctly, but not predict the outcome or handle failure well.

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 0%, so the description must compensate for all 11 parameters, and it largely does: it gives concrete value formats for plist ("1,5,10", "range(1,1,10)"), notes units syntax, and explains pname accepting a single name or list, plus defaults for study, solve and solver_step_type. Gaps remain: solver_step_properties is named but never explained, and sweep_type lists only three values followed by "..." leaving the allowed set incomplete.

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?

States a specific verb and resource: "Create a parameter sweep study (Parametric step + solver) and solve it." This clearly distinguishes the tool from generic siblings like study_create or study_add_sweep by naming both the sweep and the appended solver step. It lacks an explicit statement of what it is not, so it falls short of a 5.

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?

Usage guidance is implied rather than stated: sweep_type defaults to "Parametric" with other options named, and solver_step_type advises "use 'Transient' for transient sweeps." There is no explicit instruction on when to use this composite tool versus building a study with study_create plus study_add_sweep, and no prerequisites or exclusions are given.

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