Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_create_sequence

Creates a COMSOL mesh sequence on a specified geometry with optional automatic sizing and user-controlled settings.

Instructions

Create a mesh sequence on a geometry.

Args: geometry: geometry tag to mesh, e.g. "geom1" (None = first geometry of the first component). tag: mesh sequence tag (None = auto "mesh1", "mesh2", ...). component: component tag (None = first component containing a geometry). auto_size: predefined mesh size 1 (extremely fine) ... 9 (extremely coarse). automatic: true = COMSOL automatic mesh (default), false = user-controlled. model: model name/tag (None = current model). Example: mesh_create_sequence(geometry="geom1", auto_size=5)

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

Input Schema

NameRequiredDescriptionDefault
tagNo
modelNo
geometryNo
auto_sizeNo
automaticNo
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 useful behavior: auto-generated tags ("mesh1", "mesh2", ...), that automatic meshing is the default, and that the current model is used when model is omitted. It does not state whether the mesh is actually built or whether the operation is reversible/undoable, which matters for a mutation tool with no annotations.

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 line is front-loaded and the Args block is dense, with every entry carrying non-obvious information. The docstring-style formatting and example are conventional rather than wasteful, though the example adds little beyond args already explained.

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?

Six parameters, no annotations, and no output schema make this a moderately complex call, and the description covers inputs well. It is silent on what comes back (new tag?) and on whether meshing is executed or merely configured, so an agent could mistake it for mesh_build.

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%, and the description compensates fully by documenting all six parameters. It explains the auto_size scale (1 = extremely fine through 9 = extremely coarse) and the automatic flag's true/false meaning, neither of which is derivable from the bare integer/boolean schema types, plus the fallback semantics for tag, geometry, component, and model.

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: "Create a mesh sequence on a geometry." That distinguishes it from siblings like mesh_add_feature and mesh_build, though it never names an alternative or states how it relates to mesh_build. The purpose is unambiguous but not explicitly differentiated.

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 through the example call and the default-resolution notes ("None = first geometry of the first component"). There is no explicit when-to-use or when-not-to-use guidance, and nothing tells the agent whether a sequence must exist before mesh_add_feature or mesh_build. The agent has to infer the workflow position.

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