Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_quality

Computes minimum and mean mesh quality and plots a quality-distribution histogram for selected element types, helping you verify mesh adequacy before solving.

Instructions

Mesh quality: min/mean quality and a quality-distribution histogram.

Args: mesh: mesh sequence tag (None = first). bins: number of histogram bins (default 10). mesh_type: element type to analyse ("tet", "tri", "quad", "hex", "prism"); None = all element types present. 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_quality"
  }
}

Input Schema

NameRequiredDescriptionDefault
binsNo
meshNo
modelNo
componentNo
mesh_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the return content (min/mean quality and a histogram), which implies a non-mutating measurement. It never explicitly says the operation is read-only, and says nothing about failure cases such as an absent mesh, empty element set, or unsupported mesh_type.

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 one-line summary comes first and the per-argument notes follow in a conventional Args block, so the agent can stop after the first sentence if it only needs to know what the tool does. Wording is dense with no filler, though the summary line could have carried the read-only nature too.

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?

All five optional parameters are described, and because no output schema exists the description usefully sketches the return value, which covers most of what an agent needs to invoke it. What is missing for a mesh-inspection tool with five optional selectors is how to discover valid mesh/component/model tags and how this differs from other mesh-inspection siblings.

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: each of the five parameters is documented with its fallback behavior (mesh None = first, component None = auto-detect, model None = current model), bins has an explicit default of 10, and mesh_type enumerates the accepted values ("tet", "tri", "quad", "hex", "prism", None = all). Only minor gaps remain, such as format details for tags and what happens with an unrecognized mesh_type.

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?

"Mesh quality: min/mean quality and a quality-distribution histogram" names the resource (mesh) and the exact outputs (min/mean quality plus a histogram), so an agent knows this is an analysis/measurement tool rather than a mutation. It does not contrast itself with close siblings such as mesh_stats or mesh_element_counts, so differentiation is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this instead of mesh_stats or mesh_element_counts, nor any precondition (e.g. a mesh must already exist). The defaults in the Args block ("None = first", "None = auto-detect") help with invocation but are not usage 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