Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_auto_size

Sets a COMSOL predefined mesh size level (1–9) for a chosen mesh, component, or current model to control element density.

Instructions

Use a COMSOL predefined mesh size (1 = extremely fine ... 9 = extremely coarse).

Args: size: predefined size level 1..9 (default 5 = normal). 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_auto_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
meshNo
sizeNo
modelNo
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and does not meet it. It never says this mutates model state, whether the change is applied immediately or only after mesh_build/mesh_run, what happens if the level is out of the 1..9 range, or what the call returns. Only the sentinel meanings (None = first/auto-detect/current model) hint at behavior.

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 core semantics are front-loaded in the first sentence, followed by a compact Args block with no filler. The docstring format is slightly verbose for four short entries but each line earns its place.

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?

Parameter coverage is genuinely good, but for a state-mutating mesh tool with no annotations and no output schema, the definition omits whether a rebuild is required, whether prior size settings are overwritten, and what a successful result looks like. Adequate to call correctly, not adequate to predict consequences.

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 is the only source of parameter meaning, and it documents all four parameters with domain and defaults: size 1..9 with 5 = normal, mesh tag with None = first, component with None = auto-detect, model with None = current. That is substantial added meaning beyond titles and defaults, short of 5 only because it does not clarify tag formats or error behavior for unknown tags.

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?

The description names a specific action and resource: applying a COMSOL predefined mesh size on a mesh sequence, with the level scale spelled out (1 = extremely fine ... 9 = extremely coarse). It is clear what the tool does, though it never explicitly distinguishes itself from the sibling mesh_set_size, so an agent must infer the predefined-vs-explicit distinction.

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 only implied: the tool is for picking a named size level rather than a numeric element size, and defaults (size 5 = normal, mesh None = first) suggest a quick default-path call. There is no explicit statement of when to prefer this over mesh_set_size, nor any prerequisite such as an existing mesh sequence or component.

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