Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_mapped

Creates a mapped quadrilateral or hexahedral mesh on selected 2D domains or 3D boundary faces, requiring compatible four-edge regions.

Instructions

Create a mapped mesh feature (quadrilateral/hexahedral surfaces).

In 2D the mapped mesh covers domains (quad elements); in 3D it maps boundary faces. The mapped region needs a compatible shape (4 edges); COMSOL reports a clear error otherwise.

Args: properties: Map properties, e.g. {"interpmethod": "auto"}. selection: domain/face numbers to map. named: named selection instead of selection. all_entities: select all domains/faces of the chosen dimension (default true). entity_dim: selection dimension (default 2: domains in 2D geometry, boundaries in 3D geometry). 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_mapped"
  }
}

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
namedNo
componentNo
selectionNo
entity_dimNo
propertiesNo
all_entitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does a fair job: it discloses dimension-dependent behavior (2D covers domains with quad elements, 3D maps boundary faces) and the failure mode for incompatible geometry. It stops short of saying whether the feature is added to a sequence, whether meshing is executed, or what the call returns.

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?

Behavioral context is front-loaded before the Args block, and each parameter line is short and purposeful. There is minor redundancy between the parenthetical element types and the 2D/3D sentences, but nothing that wastes the reader's attention.

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 an eight-parameter mutation tool with no annotations and no output schema, the definition covers geometry constraints, selection scope, and per-parameter defaults well. It omits workflow placement (sequence membership, whether mesh_build must follow) and any statement about the result, which leaves a real gap for an agent orchestrating mesh operations.

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%, so the description must compensate, and it largely does by documenting all eight parameters with meaning beyond their titles: an example map for properties, the domain/face meaning of selection, the either/or relationship between named and selection, and the concrete effect of entity_dim defaults in 2D versus 3D. Entries for mesh and component are thinner ("mesh sequence tag (None = first)"), keeping it below a 5.

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?

States a specific verb and resource: "Create a mapped mesh feature (quadrilateral/hexahedral surfaces)," and distinguishes it from free-mesh behavior by naming the element types and the 4-edge shape constraint. It does not explicitly contrast itself with siblings like mesh_sweep or mesh_free_tet, so sibling differentiation is implied rather than stated.

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?

Gives a real precondition (the mapped region needs a compatible 4-edge shape, otherwise COMSOL errors) and clarifies the 2D-domain vs 3D-boundary scope. However, it never says when to choose mapped meshing over the free/sweep alternatives, nor whether a mesh sequence must exist first, so the agent must infer selection.

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