Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

phys_add

Adds a physics interface to a COMSOL component and validates the requested type against the COMSOL 6.4 catalog, checking geometry dimensions and returning close matches for unknown types.

Instructions

Add a physics interface to a component (e.g. HeatTransfer, SolidMechanics).

The interface type is validated against the COMSOL 6.4 catalog; an unknown type returns close matches. The target geometry's space dimension is checked as well (e.g. LaminarFlow needs 2D/3D).

Args: type: catalog interface type, e.g. "HeatTransfer", "SolidMechanics", "LaminarFlow", "Electrostatics", "PressureAcoustics", "ElectromagneticWavesFrequencyDomain", "DilutedSpecies". Tag prefixes ("ht") and descriptions are accepted too. tag: interface tag (None = catalog default prefix + number, e.g. "ht"). label: optional display label (e.g. "Heat Transfer in Solids"). geom: target geometry tag (None = first geometry of the component). component: component tag (None = first component). extra_dims: optional extra-dimension tags for reduced models. 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": "phys_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
geomNo
typeYes
labelNo
modelNo
componentNo
extra_dimsNo

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 provided, the description carries the full burden and does reasonably well: it discloses that the type is validated against the COMSOL 6.4 catalog, that unknown types return close matches instead of failing outright, and that the target geometry's space dimension is checked (LaminarFlow needs 2D/3D). It omits what happens on duplicate tags or what a successful call returns, which keeps it below a 5.

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 purpose sentence is front-loaded before the validation notes and the Args block, so scanning is easy and each section is purposeful. The parameter block is somewhat long but every line maps to a parameter that would otherwise be undocumented.

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 7-parameter mutation tool with no annotations and no output schema, the definition covers the essentials: what it creates, how the type is validated, dimension compatibility, and default resolution for every optional argument. Missing are error/duplicate behavior and any description of the returned handle, which would fully close the gap.

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 it does: it documents all seven parameters in an Args block, including accepted type strings, that tag prefixes and descriptions are also accepted, the default-prefix-plus-number tag convention, and the fallback resolution for geom, component, and model. Only extra_dims remains thinly explained ('extra-dimension tags for reduced models').

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 ('Add a physics interface to a component') and immediately grounds it with catalog type examples (HeatTransfer, SolidMechanics). This is clearly distinguishable from siblings like phys_add_bc or phys_add_feature, which add sub-features rather than interfaces.

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 by the verb and the catalog type examples, and the note that unknown types return close matches hints at an exploratory flow. However, the description never explicitly says when to prefer this tool over phys_add_feature, multiphysics_add, or phys_interfaces_catalog, leaving the agent to infer the boundary.

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