Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_import

Imports a mesh into a COMSOL mesh sequence from another mesh sequence, geometry, or result dataset, with options for entity selection and import feature properties.

Instructions

Import a mesh into a mesh sequence (COMSOL Import mesh feature).

COMSOL imports meshes from another mesh sequence, a geometry or a result dataset. The source is configured through feature properties — e.g. source="sequence" plus properties={"sequence": "mesh1"}, or source="dataset" plus properties={"dataset": "dset1"}.

Args: mesh: target mesh sequence tag (None = first). source: source kind ("sequence", "geom", "dataset"); optional. properties: extra Import properties (sequence, geom, dataset, ...). tag: feature tag (default auto "imp1"). selection: domain/entity numbers for the import feature. named: named selection instead of selection. all_entities: select all entities of entity_dim. entity_dim: selection dimension (default: geometry dimension). component: component tag (None = auto-detect). model: model name/tag (None = current model).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mesh_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
meshNo
modelNo
namedNo
sourceNo
componentNo
selectionNo
entity_dimNo
propertiesNo
all_entitiesNo

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 provided, so the description carries the full disclosure burden. It does add useful behavioral context: default tags (auto "imp1"), default resolution rules (mesh None = first, model None = current, entity_dim defaults to geometry dimension), and the two-part configuration pattern for choosing a source. It omits operational consequences an agent would want for an import feature — whether an existing mesh is replaced, whether the sequence must already exist, whether a build is triggered, and what is returned.

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 is front-loaded in the first sentence, with configuration examples immediately after, before the parameter list. The Args block is long but earns its place given 0% schema coverage. Minor redundancy exists between the prose examples and the properties parameter line.

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 10-parameter, zero-annotation, no-output-schema mutation tool, the definition covers inputs well and explains source configuration. It is incomplete on the surrounding workflow: prerequisites (existing mesh sequence), side effects on the target mesh, build/run requirements, and any indication of what the call yields. An agent could call it correctly but not predict its effects.

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% across 10 parameters, so the description is the only source of parameter meaning, and it documents every one of them including defaults and the source enum values ("sequence", "geom", "dataset"). It further explains the interaction between source and properties and between selection, named, all_entities, and entity_dim. Gaps remain on the expected format of selection values and named-selection semantics, so it is strong but not exhaustive.

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 opening states a specific verb and resource: 'Import a mesh into a mesh sequence (COMSOL ``Import`` mesh feature).' The following sentence clarifies that the mesh can come from another mesh sequence, a geometry, or a result dataset, which materially narrows what 'import' means here. It does not explicitly differentiate itself from siblings such as geom_import or mesh_add_feature, so it falls short of a 5.

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 conveyed indirectly through the source/configuration examples (``source="sequence"`` with ``properties={"sequence": "mesh1"}``), which tells an agent how to call it for each source kind. However, there is no explicit statement of when to prefer this over mesh_add_feature, geom_import, or mesh_free_tet, and no when-not guidance or stated prerequisites. The agent must infer the selection context.

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