Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

solver_feature_add

Add a solver-configuration feature to a COMSOL solver sequence, specifying feature type, parent path, tag, and properties to build or extend solver setups.

Instructions

Add a solver-configuration feature to a solver sequence.

Args: sequence: solver sequence tag (None = the only one). feature_type: COMSOL solver feature type: "FullyCoupled", "Segregated", "Direct", "Iterative", "Multigrid", "SOR", "Jacobi", "IncompleteLU", "Stationary", "Time", "Eigenvalue", "StudyStep", "Variables", ... (catalog_types("solver")). tag: feature tag (None = automatic from the type, e.g. "fc1"). parent: parent feature path (None = the sequence root). Linear solvers/coupling features usually belong inside a solver feature, e.g. parent="s1". properties: feature properties to set, e.g. {"linsolver": "pardiso"} for a Direct feature. 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": {
      "feature_type": "<feature_type>"
    },
    "name": "solver_feature_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
modelNo
parentNo
sequenceNo
propertiesNo
feature_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It discloses useful traits — tags auto-derive from the type (e.g. "fc1"), and linear solver/coupling features usually nest inside a solver feature via parent — but it says nothing about what happens on tag collision, whether a missing sequence is an error, or whether the new feature is created disabled.

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 summary sentence is front-loaded and the Args block is scannable, with each parameter on one line plus a short clarification. The feature_type enumeration is long but earns its space by being the required parameter; the parent hint is the only place where explanation sprawls slightly.

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 six-parameter mutation with no annotations and no output schema, the description covers inputs well but leaves the return value undefined — the agent cannot tell whether it gets back the generated tag, which matters for chaining into solver_feature_set. Error behavior and permission/state prerequisites are also absent.

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 entirely, and it does: every one of the six parameters gets meaning beyond the bare title, including None-defaults (sequence, tag, parent, model) and concrete examples such as parent="s1" and {"linsolver": "pardiso"}. The catalog_types("solver") pointer and the enumerated feature_type values give the agent enough to construct a valid call.

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 line states a specific verb and resource: add a solver-configuration feature to a solver sequence. That is unambiguous on its own, but it never distinguishes itself from the neighboring solver_feature_set or solver_configure, so an agent must infer the boundary from the name alone.

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 is implied rather than stated: the feature_type list points the agent at catalog_types("solver") to discover valid types, which is genuinely useful routing. However, there is no explicit when-to-use guidance, no mention of prerequisites (a solver sequence must exist first), and no contrast with solver_feature_set or solver_sequence_create.

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