Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_sweep

Creates swept mesh features with hexahedral or prism elements along a sweep path for selected COMSOL domains, using automatic or specified source and target faces.

Instructions

Create a swept mesh feature (hexahedral/prism elements along a sweep path).

Args: properties: Sweep properties, e.g. {"element": "hex", "sweeppath": "auto"} (element: "hex" | "hexdominant" | "prism"; default hexdominant). domains: domain numbers to sweep (default all domains). named: named selection of domains instead of domains. source_faces: source boundary numbers (optional; COMSOL picks the source automatically from the domain topology by default). target_faces: target boundary numbers (optional). all_domains: sweep all domains (default true; ignored when domains/named given). mesh: mesh sequence tag (None = first). component: component tag (None = auto-detect). model: model name/tag (None = current model). Example: mesh_sweep(domains=[1], source_faces=[1], properties={"element": "hex"})

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_sweep"
  }
}

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
namedNo
domainsNo
componentNo
propertiesNo
all_domainsNo
source_facesNo
target_facesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 usefully disclose several defaults and auto-resolution behaviors (mesh=None means first, component=None auto-detects, model=None means current, source faces auto-derived from topology), but it never states whether the mesh is actually built/run afterwards, whether the operation is destructive to an existing mesh, or what errors occur when the domain has no sweepable topology.

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 one-line summary followed by an Args block and a concrete example – an efficient structure for a 9-parameter tool. The formatting is docstring-style with some redundancy between all_domains and the 'default all domains' note, but no sentence is genuinely wasted given the zero schema coverage.

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 9-parameter mesh-creation tool with no annotations and no output schema, the description supplies nearly everything needed to construct a call, including a worked example. The remaining gap is post-call behavior: whether the sweep feature is merely added or also meshed, and what failure conditions (unsweepable domains) look like.

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% across 9 parameters, so the description must compensate entirely and it does: every parameter is documented with type, meaning, and default (properties with allowed element values and hexdominant default, domains/named mutual behavior, source_faces/target_faces optionality, all_domains ignored when domains/named given, mesh/component/model fallbacks). The nested 'properties' object keys are also explained, which the flat schema does not do at all.

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 description opens with a specific verb+resource ('Create a swept mesh feature') and immediately scopes it with parenthetical detail ('hexahedral/prism elements along a sweep path'), which lets an agent distinguish it from free-tet/free-tri or mapped meshing siblings. It does not explicitly name which sibling to use instead, so it stops 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 implied by the element-type framing (use this when you want hex/prism elements swept along a path) but there is no explicit when-to-use/when-not guidance and no mention of the obvious alternatives such as mesh_mapped or mesh_free_tet. The default behaviors in the Args section ('default all domains', 'COMSOL picks the source automatically') hint at operating modes without saying when to choose them.

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