Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

multiphysics_add

Add a multiphysics coupling between existing COMSOL physics interfaces, such as thermal expansion, non-isothermal flow, or fluid-structure interaction, by specifying the coupling type and optional tag, geometry, and component.

Instructions

Add a multiphysics coupling between existing physics interfaces.

Common types (live-verified): ThermalExpansion (heat+solid), NonIsothermalFlow (heat+flow), ElectromagneticHeating (heat+EM waves), AcousticStructureBoundary (acoustics+structure), FluidStructureInteractionBC (flow+structure). The coupling type is attempted on COMSOL; unknown types return close matches.

Args: type: coupling type, e.g. "ThermalExpansion", "NonIsothermalFlow". tag: coupling tag (None = conventional prefix + number, e.g. "te1"). label: optional display label. geom: geometry tag the coupling operates on (None = first geometry). entity_dim: entity dimension for boundary couplings (2 in 3D, 1 in 2D); None tries the 3-argument form first. component: component tag (None = first component). 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": {
      "type": "<type>"
    },
    "name": "multiphysics_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
geomNo
typeYes
labelNo
modelNo
componentNo
entity_dimNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one genuinely useful behavior beyond the schema: "The coupling type is attempted on COMSOL; unknown types return close matches," which tells the agent that invalid types fail softly rather than erroring. It says nothing about what is returned on success (the created tag?), whether existing couplings conflict, or what permissions/state are required.

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 one-line purpose, then the type catalog, then a clean Args block; each line is scannable and earns its place. The type catalog is slightly redundant with the "type" arg line, but it is the highest-value information in the definition, so the cost is small.

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 seven-parameter mutation tool with no annotations and no output schema, the definition is unusually complete on inputs, defaults, and fallback behavior. The remaining gap is the return value — the agent is not told whether a tag is returned or how to verify the coupling was created, and no output schema exists to cover it.

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 carry all parameter meaning and it does: every one of the seven args is documented with its default resolution rule (tag None = conventional prefix + number, geom None = first geometry, model None = current model). The entity_dim note — "2 in 3D, 1 in 2D; None tries the 3-argument form first" — adds non-obvious calling semantics an agent could not infer from the bare schema.

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?

Opens with a specific verb and resource ("Add a multiphysics coupling between existing physics interfaces") and immediately narrows scope with the enumerated coupling types and their physics pairings, which lets an agent distinguish this from multiphysics_add_feature or phys_add.

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?

The phrase "between existing physics interfaces" implies a prerequisite (physics interfaces must already exist), and the list of common type+physics pairings helps an agent pick a valid type. However, it never states when to use this versus a sibling such as multiphysics_add_feature, nor what to do when a coupling is unsupported or already present.

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