Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_build

Build or rebuild a COMSOL model mesh, optionally validating a specified mesh feature first. Use it to generate mesh geometry for simulation on a selected component, mesh sequence, or current model.

Instructions

Build (or rebuild) the mesh — alias of mesh_run.

Args: mesh: mesh sequence tag (None = first). feature: optional feature tag to validate before building. 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_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
featureNo
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never states what happens to an existing mesh on rebuild (discarded? preserved?), whether quality/stats data is invalidated, expected cost, or failure modes; only the validate-before-build note adds real behavioral context.

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 core statement is front-loaded in the first sentence and the remaining lines are a tight per-parameter list with no filler. The raw 'Args:' docstring formatting is functional rather than polished, but nothing is wasted.

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 4-parameter mutation tool with no annotations and no output schema, the description covers parameter intent but omits return values (does it report mesh stats or quality?) and the destructiveness of a rebuild. Adequate but with clear gaps an agent would want before invoking.

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% and the schema only supplies bare titles, yet the description documents all four parameters with their null defaults and meaning ('None = first', 'None = auto-detect', 'None = current model', feature validated before building). That is meaningful compensation, though no format or syntax examples are given.

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 and resource ('Build (or rebuild) the mesh') and immediately discloses that it is an alias of mesh_run, which tells an agent the two are interchangeable. It stops short of a 5 because it does not distinguish the tool's role from neighbors like mesh_clear or mesh_import, only from its own alias.

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?

Naming the mesh_run alias implies usage equivalence, and the 'feature' arg hints at a validate-then-build workflow, but there is no explicit when-to-use/when-not guidance against the many other mesh_* siblings (clear, import, add_feature). Usage must be inferred.

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