Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_export

Export the built COMSOL mesh to STL, NASTRAN, 3MF, PLY, or native files, with optional path, format, and component selection for downstream analysis or sharing.

Instructions

Export the built mesh to a file (STL, NASTRAN, 3MF, PLY, native, ...).

Args: path: target file path (absolute, or relative to the artifact root). When omitted a timestamped file under <artifact_root>/mesh/ is created. The correct extension is appended when missing. format: "stl" (default, binary STL) | "stlbin" | "stlascii" | "nastran" | "3mf" | "ply" | "native" | "sectionwise". COMSOL 6.4 has no VTU mesh export. stl_format: for STL exports: "binary" (default) or "text". mesh: mesh sequence tag (None = first). component: component tag (None = auto-detect). model: model name/tag (None = current model). Returns: {"path": "", "size": , "export_type": ...}.

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

Input Schema

NameRequiredDescriptionDefault
meshNo
pathNo
modelNo
formatNostl
componentNo
stl_formatNobinary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the write side effect, the default location (timestamped file under <artifact_root>/mesh/), automatic extension appending, and a version caveat that COMSOL 6.4 has no VTU mesh export. It omits overwrite behavior when the target file already exists and any permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Docstring-structured with the core action front-loaded in the first line, followed by per-argument notes and an explicit return shape. Every line carries usable information; no filler.

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 six-parameter, zero-required export tool with no output schema, the description supplies defaults, format vocabulary, path resolution rules, and a return-value shape, which covers what an agent needs to call it. The remaining gap is file-overwrite/collision semantics.

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 does: it documents all six parameters including the full format vocabulary (values that are not enums in the schema), the binary/text STL distinction, and the None semantics for mesh, component, and model. The parameter notes are terse but sufficient for correct invocation.

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 ("Export the built mesh to a file") and enumerates the concrete output formats supported (STL, NASTRAN, 3MF, PLY, native). It does not differentiate from the sibling export_mesh or export_geometry, so an agent must still guess which exporter applies.

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?

The phrase "the built mesh" implies a mesh must exist first, and per-format defaults are given, which is useful implied guidance. But there is no explicit when-to-use-this vs. export_mesh/geom_export, and no stated preconditions or error conditions.

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