Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_free_tet

Creates or configures a FreeTet meshing feature in COMSOL and selects the domains to mesh, letting you set method and optimization properties for tetrahedral meshes.

Instructions

Create (or configure) a FreeTet feature and select domains to mesh.

Args: properties: FreeTet properties, e.g. {"method": "delaunay"} or {"optlevel": "high"}. Known names: method, smoothcontrol, smoothmaxiter, smoothmaxdepth, optlevel, numlayer, xscale/yscale/zscale, ... selection: domain numbers to mesh (default all domains). named: named selection of domains instead of selection. all_domains: mesh all domains (default true; ignored when selection/named given). mesh: mesh sequence tag (None = first). 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_free_tet"
  }
}

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
namedNo
componentNo
selectionNo
propertiesNo
all_domainsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

No annotations and no output schema, so the description carries the full behavioral burden, and it omits the most important facts: whether this only creates/configures the feature or actually executes meshing, whether it replaces an existing tet mesh, and what it returns. Only 'create or configure' hints at mutation. For a 7-parameter meshing mutation this is a significant gap.

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 followed by a compact Args block, so an agent can scan it quickly. The docstring framing and trailing ellipsis in the properties list are slightly loose, but nothing is padded.

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?

Given seven optional parameters, no annotations, and no output schema, the description covers the argument surface thoroughly and could be called complete on that axis. What is missing is the execution/side-effect story (does it run the mesher, is an existing mesh destroyed), which leaves a real hole for a mutation tool.

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%, so the description must compensate, and it does: all seven parameters are explained with meaning and defaults (selection vs. named, all_domains ignored when either is given, mesh None = first, component None = auto-detect, model None = current). The properties key even lists known names (method, optlevel, smoothcontrol, ...), which the schema cannot convey.

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 first line gives a specific verb and resource: "Create (or configure) a FreeTet feature and select domains to mesh." That is far better than restating the name, and 'FreeTet' plus 'select domains' distinguishes it from generic feature tools. It stops short of naming mesh_free_tri or mesh_add_feature as the alternatives, so the agent must infer the boundary.

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 only implied: the tool is for tet meshing of selected domains, with defaults spelled out (all_domains true, mesh None = first). There is no statement of when to choose this over mesh_free_tri, mesh_add_feature, or mesh_auto_size, and no prerequisites or ordering guidance relative to mesh_build/mesh_run.

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