Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_run

Build the mesh sequence for a COMSOL model, returning element counts and quality metrics to prepare models for simulation.

Instructions

Build the mesh sequence (shortcut for the COMSOL "Build All").

Args: mesh: mesh sequence tag (None = first). feature: optional feature tag; when given it is validated and the whole sequence is built (COMSOL builds all features in order). component: component tag (None = auto-detect). model: model name/tag (None = current model). Returns: {"ran", "n_elem", "n_elem_by_type", "n_vertex", "min_quality", "mean_quality", "is_complete", ...}

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

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
featureNo
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With zero annotations, the description must carry the behavioral load. It usefully discloses the non-obvious quirk that supplying a feature tag only validates it while the whole sequence is still built, and it lists return keys including quality metrics. It omits whether existing mesh data is overwritten, expected runtime/cost, and what happens on a failed build.

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 one-line summary followed by compact Args/Returns blocks, with no filler sentences. The docstring formatting is slightly boilerplate but each line carries information an agent needs.

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 four-parameter compute tool with no annotations and no output schema, the definition covers parameter meaning and even enumerates return keys, which is more than most. Missing are failure behavior and side effects on existing mesh state.

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 has to define semantics itself, and it does for all four args, including the meaning of the null defaults (first mesh, auto-detect component, current model). It does not specify accepted tag formats or how tags are discovered.

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?

"Build the mesh sequence (shortcut for the COMSOL 'Build All')" gives a concrete verb and resource and clarifies the scope is the entire sequence rather than one feature. It does not explicitly contrast with the sibling mesh_build, so an agent must infer the difference between building one feature and building all.

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: this is the tool you call to actually execute meshing after the sequence is configured. There is no explicit statement of when to prefer mesh_run over mesh_build or mesh_auto_size, nor any prerequisite or exclusion guidance.

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