Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

phys_add_feature

Create COMSOL physics features such as boundary conditions and domain settings, with options for parent sub-features, selections, properties, and interface-specific types.

Instructions

Create a physics feature (boundary condition, domain setting, ...).

feature_type must be a COMSOL type valid for the interface (verified against the catalog and, ultimately, COMSOL). Use parent to create a sub-feature inside an existing feature (e.g. Plasticity under the Linear Elastic Model).

Args: interface: interface tag/label/type (e.g. "ht"). feature_type: COMSOL feature type, e.g. "TemperatureBoundary", "HeatFluxBoundary", "HeatSource", "Fixed", "InletBoundary". tag: new feature tag (None = auto "prefixN"). label: optional display label. entity_dim: entity dimension (3=domains, 2=boundaries, 1=edges, 0=points in 3D; None = domain dimension of the geometry). selection: entity list (e.g. [1,2,3]), "all", or a named-selection tag. named_selection: named selection tag to assign instead of entities. all_entities: select all entities of the feature's dimension. properties: property dict, e.g. {"T0": "400[K]"}. parent: parent feature tag (or nested path "lemm1/pl1") for sub-features. 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": {
      "interface": "<interface>",
      "feature_type": "<feature_type>"
    },
    "name": "phys_add_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
labelNo
modelNo
parentNo
interfaceYes
selectionNo
entity_dimNo
propertiesNo
all_entitiesNo
feature_typeYes
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 some non-obvious behavior beyond the schema: the auto tag scheme 'prefixN' when tag is null, and that entity_dim defaults to the geometry's domain dimension. It says nothing about whether the created feature is enabled or disabled, what happens on an invalid feature_type (silent fallback vs. error), or what is returned, which are the facts an agent needs for a mutating 11-parameter call.

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 a one-line purpose, then a constraints paragraph, then an explicit Args block, which is an efficient structure for a tool with eleven parameters. The prose is terse and each line carries information; only the ellipsis in '(boundary condition, domain setting, ...)' is wasted space.

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 an eleven-parameter mutation tool with no annotations and no output schema, the parameter side is well covered but the contract is only partly closed: return value (presumably the new tag), failure behavior, and the resulting feature state are unstated. The model-selection default 'current model' is given, which helps, but an agent must infer the rest.

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 its Args block documents all eleven parameters, including the useful entity_dim to dimensionality mapping (3=domains, 2=boundaries, 1=edges, 0=points) and a properties example. Gaps remain on interaction between selection, named_selection, and all_entities (which wins when several are set) and on what forms the interface value accepts.

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 concrete verb and resource: 'Create a physics feature (boundary condition, domain setting, ...)' with examples of what counts as a feature. It does not distinguish itself from close siblings such as phys_add_bc or multiphysics_add_feature, so an agent cannot tell from the text alone which add-tool to pick.

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?

Gives real conditional guidance for two cases: feature_type must be valid for the interface (and points at a catalog for verification), and parent is used to create sub-features such as Plasticity under Linear Elastic Model. It offers no guidance on when to prefer this general tool over phys_add_bc, multiphysics_add_feature, or mesh_add_feature, and states no preconditions (interface must already exist).

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