Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

study_solve

Solve a COMSOL study synchronously and report elapsed time, solution tags, datasets, plots, solver stats, warnings, and errors; use async for long simulations.

Instructions

Solve a study synchronously and report timings, solutions and messages.

Long solves block the COMSOL worker; use study_solve_async for simulations longer than ~30 s. Every call reports the wall-clock elapsed_s, the attached solver sequence tags, new datasets/plots, COMSOL's own last_computation_time and solver warnings/errors.

Args: study: study tag (None = the only study in the model). generate_plots: switch on the "Plot" option of every study step so that default plot groups are created (otherwise the client API creates none). run_no_gen: use study.runNoGen() (reuse existing solver sequences instead of regenerating them). model: model name/tag (None = current model).

Returns: study, model, elapsed_s, solution_tags, new_datasets, new_plots, solution_stats (type/size/DoFs/solution counts), last_computation_time/ date/version, warnings and errors.

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": "study_solve"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
studyNo
run_no_genNo
generate_plotsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A5/5.0
Behavior5/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 so well: it discloses synchronous blocking, side effects such as attached solver sequence tags and new datasets/plots, and reporting of elapsed time, computation time, warnings, and errors. It also explains how generate_plots and run_no_gen alter solver/plot generation behavior.

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?

The description is front-loaded with purpose and the key async alternative, then uses compact Args and Returns sections. Every sentence adds operational detail, and there is no redundant restatement of schema field names alone.

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

Completeness5/5

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

For a four-parameter tool with no annotations and no output schema, the definition covers purpose, blocking behavior, all parameters, and expected return fields including solution stats, datasets, plots, timings, and errors. This is complete enough for an agent to invoke the tool correctly and interpret its output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all parameter semantics, and it does. It defines study and model defaults, explains generate_plots as enabling the Plot option for default plot groups, and explains run_no_gen as reusing existing solver sequences instead of regenerating them.

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?

The description states a specific verb and resource: solve a study synchronously and report timings, solutions, and messages. It also explicitly distinguishes itself from the async sibling by explaining that long solves block the COMSOL worker, so an agent can identify when this tool is the synchronous execution path.

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

Usage Guidelines5/5

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

The description gives an explicit alternative and threshold: use study_solve_async for simulations longer than roughly 30 seconds. This makes the when-to-use and when-not-to-use guidance clear without requiring the agent to infer from sibling names alone.

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