Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

study_solve_async

Start a background COMSOL study solve and return a job ID immediately; poll status or wait for completion, then access the saved model and solve log.

Instructions

Start a background solve job and return immediately with a job_id.

Poll progress with job_status / study_solve_wait / job_wait. The job solves one study or a list of studies sequentially; the saved model (.mph) and a JSON solve log are attached as job artifacts.

Cancellation is cooperative (job_cancel): it is honored between studies/steps; a single monolithic COMSOL solve cannot be interrupted (use session_kill as the hard-stop escape hatch).

Args: study: one study tag to solve (None = all studies of the model). studies: list of study tags to solve sequentially (alternative to study; use it to get cancellation between parameter points). generate_plots: generate default plot groups after each solve. save_model: save the model to <artifacts>/.../<model>.mph and attach it to the job (default true). model: model name/tag (None = current model).

Example: job = study_solve_async(study="std_time") # then: study_solve_wait(job["job_id"], timeout_s=180)

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_async"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
studyNo
studiesNo
save_modelNo
generate_plotsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so: it discloses the async return contract, that the .mph model and a JSON solve log are attached as artifacts, and the precise cooperative-cancellation boundary (between studies/steps, not inside a monolithic COMSOL solve). That cancellation nuance is the kind of non-obvious behavior an agent could not infer elsewhere.

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?

Front-loaded with the action and return value, followed by tightly organized polling, cancellation, Args, and Example sections — every sentence earns its place. Minor noise from docstring-style double-backtick markup that reads as clutter in plain text.

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?

Despite five optional parameters, no annotations, and no output schema, the description covers return value (job_id), artifact side effects, polling path, and cancellation limits. Nothing an agent needs to call this correctly and handle the result is missing.

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 coverage is 0%, so the description must compensate, and it documents all five parameters with meaning beyond types: study=None means all studies, studies is an alternative to study chosen specifically to get cancellation between parameter points, save_model's default true and the resulting artifact path, and model=None meaning the current model.

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?

States a specific verb and resource — "Start a background solve job and return immediately with a job_id" — which unambiguously separates it from the blocking solve and the wait/poll siblings. The scope (one study or a list solved sequentially) is also given up front.

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?

Explicitly routes the agent to job_status / study_solve_wait / job_wait for polling and to job_cancel / session_kill for stopping the job, including the condition that makes session_kill necessary. It does not contrast itself with the blocking study_solve variant, so the use-this-vs-that decision is only implied.

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