Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_stats

Retrieve COMSOL mesh statistics, including element and vertex counts, quality metrics, element types, and volume, to identify mesh problems and verify mesh completeness.

Instructions

Mesh statistics: element/vertex counts, quality, type flags, volume.

Args: mesh: mesh sequence tag (None = first). component: component tag (None = auto-detect). model: model name/tag (None = current model). Returns: {"n_elem", "n_elem_by_type", "n_vertex", "min_quality", "mean_quality", "has_second_order_elements", "is_complete", ...} plus mesh problems. Note: the clientapi has no max-quality getter.

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

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 burden; it does useful work by listing the returned keys, mentioning mesh problems are included, and flagging a real limitation ('the clientapi has no max-quality getter'). However it never states that the call is read-only/non-mutating or how mesh/component/model resolution failures behave.

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?

Compact and front-loaded: the first line states purpose and metrics, followed by Args and Returns blocks with no filler. The one caveat sentence is directly relevant to how results should be interpreted.

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?

Return keys are enumerated in lieu of an output schema, which covers the main gap for a stats tool, and all parameters are explained. But with no annotations and no output schema, the omission of read-only intent, error behavior for invalid mesh/model names, and unit/format of quality values leaves the picture incomplete.

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 coverage is 0%, yet the Args block defines all three parameters and their None defaults (mesh sequence tag → first, component → auto-detect, model → current model). That is meaningful compensation beyond the bare titles and defaults in the schema, though accepted identifier formats are not specified.

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 concrete verb+resource ('Mesh statistics') and enumerates the content: element/vertex counts, quality, type flags, volume. This distinguishes it from a targeted query like mesh_quality or mesh_element_counts, though it never explicitly contrasts with those siblings.

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?

No statement of when to use this versus alternatives, no prerequisites, no exclusions. The only guidance is incidental default behavior ('None = first', 'None = auto-detect'), which is not invocation 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