Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_minmax

Computes maximum and minimum values of COMSOL expressions over domains, boundaries, or edges, with optional filtering by entities, named selections, datasets, and solution numbers.

Instructions

Maximum and/or minimum of expressions over domains/boundaries/edges.

Dimension-aware COMSOL types (verified): 3D -> MaxVolume/MaxSurface/ MaxLine (Min* alike); 2D -> MaxSurface (domains) / MaxLine (boundaries).

Args: expressions: expressions, e.g. ["T"]. kind: "volume"/"domain", "surface"/"boundary" or "line"/"edge" (2D: boundaries). mode: "both" (default), "max" or "min". dataset: dataset tag (None = default solution dataset). entities: entity numbers of the resolved dimension (default = all). named_selection: named selection instead of entities. solnum: 1-based solution number(s) (None = all). model: model name/tag (None = current model).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expressions": "<expressions>"
    },
    "name": "result_minmax"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNovolume
modeNoboth
modelNo
solnumNo
datasetNo
entitiesNo
expressionsYes
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries full burden, and it does disclose genuinely useful behavior: COMSOL type resolution per model dimension, 'entities of the resolved dimension', and that solnum is 1-based. However it never says whether this creates a persistent result node in the model or is a pure query, nor what the response shape/units are — significant omissions for an unannotated tool.

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?

It is front-loaded with the purpose first, then the dimension table, then a parameter list — logical ordering. The Args block is long but justified because the schema has no property descriptions; minor wording redundancy is not enough to penalize heavily.

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?

For an 8-parameter tool with no annotations and no output schema, the parameter side is well covered, but the return value and side effects are unstated; with no output schema the description should at least indicate what comes back. It is adequate but leaves a notable gap before an agent can call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description compensates fully: every one of the 8 parameters is explained with meaning and defaults, including the tricky ones ('entities of the resolved dimension', 'named_selection instead of entities', '1-based solution number(s)', 'None = current model'). This adds real semantic value the bare schema does not carry.

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 opening line names a specific operation (max/min of expressions) over specific scopes (domains/boundaries/edges), which separates it from result_average, result_integrate, or result_eval_point. It stops short of naming any sibling explicitly, but the verb+resource pairing is unambiguous.

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 rather than stated: the dimension mapping (3D -> MaxVolume/MaxSurface/MaxLine, 2D -> MaxSurface/MaxLine) tells an agent which 'kind' to pick, and mode defaults are given. There is no explicit guidance on when to choose this tool over result_evaluate or result_measure, nor any stated prerequisites.

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