Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

library_run

Load a COMSOL library model, solve all or a specified study, and save the solved copy to the workspace.

Instructions

Load a library model, solve it, and save a solved copy to the workspace.

Synchronous and blocking (all COMSOL work is serialised) -- intended for small models: check time_s in library_search/library_describe and prefer quick_only=true models for interactive use. Heavy models can take minutes.

Args: id_or_path: model id (from library_search) or absolute .mph path. study: optional study tag/name to solve (e.g. "std1"); default = all studies. save_path: target .mph path; default = workspace artifact root <artifact_root>/<model>/<timestamp>_library_run/<model>_solved.mph. name: optional model name in the COMSOL session (default: file stem).

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": {
      "id_or_path": "<id_or_path>"
    },
    "name": "library_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
studyNo
save_pathNo
id_or_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call is synchronous and blocking, that all COMSOL work is serialised, and that runtime can span minutes. It does not say whether an existing save_path file is overwritten or what session state is left behind, which are the main residual risks for a mutation-plus-save 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?

The core action is front-loaded in one sentence, followed by the blocking/serialisation caveat and then a compact Args block. Nothing is obviously redundant, though the parenthetical about serialisation and the multi-line default path add some bulk. It reads cleanly for a four-parameter tool.

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?

For a blocking, potentially slow tool with no annotations and no output schema, the description covers timing, scope, and every parameter default. The one omission is the return value: it never says what the call yields (e.g. the resolved solved-file path), which matters since no output schema exists.

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%, and the description fills the gap completely: every one of the four parameters is explained with meaning and default behaviour. The id_or_path alternative (library id vs absolute .mph), the study default of all studies, and the concrete default save_path template all go well beyond the bare schema.

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 first sentence names a precise three-step resource chain: load a library model, solve it, save a solved copy to the workspace. This clearly separates it from a pure load or pure solver tool. It stops short of naming a sibling it differs from (e.g. library_load, solver_run), so it is not quite 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 Guidelines4/5

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

Explicitly scopes use to small models, tells the agent to check time_s via library_search/library_describe first, and recommends quick_only=true models for interactive use. It also warns that heavy models take minutes, which is effectively a when-not-to-use signal. What is missing is an explicit statement of what to do instead for heavy models.

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