Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

library_load

Loads an installed COMSOL example model (.mph) into the running session by model ID or absolute path, opening the original read-only and preserving companion .mphbin data.

Instructions

Load an installed COMSOL example model (.mph) into the running session.

The original file is opened read-only; use model_save / library_run to write a copy into the workspace. Models with companion .mphbin data must be loaded from their installed path (this tool always does that).

Args: id_or_path: model id (from library_search) or absolute .mph path. name: optional name for the loaded model (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_load"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
id_or_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does meaningful work: it discloses that the original file is opened read-only, that writes require model_save/library_run, and that models with companion .mphbin data are always loaded from the installed path. It omits session-state effects, such as whether an existing loaded model is replaced or how failures are surfaced.

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?

Front-loaded with the core action, followed by the read-only/.mphbin caveats and a compact Args block. Every sentence carries information an agent needs; nothing is redundant.

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 two-parameter load tool with no output schema and no annotations, the description covers the source of the input, the read-only semantics, and the follow-up tools needed to persist changes. It leaves the post-load return value and the resulting model handle only implicitly defined via the name argument.

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 description coverage is 0%, so the description must compensate and largely does: id_or_path is explained as either a model id from library_search or an absolute .mph path, and name is explained as optional with a default of the file stem. Only edge cases like name collisions or relative-path handling remain unspecified.

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: 'Load an installed COMSOL example model (.mph) into the running session.' The scope qualifier 'installed COMSOL example model' distinguishes it from the generic model_load sibling, though it never names that sibling explicitly.

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?

Provides clear downstream routing: 'use model_save / library_run to write a copy into the workspace', and identifies library_search as the source of valid model ids. It does not, however, say when to prefer this over model_load or what happens when the id/path is invalid.

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