Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_eval_all_solutions

Evaluates an expression across every solution or time step in a COMSOL dataset, returning per-solution values and a solnum-to-time/parameter map for transient or parametric result analysis.

Instructions

Evaluate an expression for every solution/time in a dataset.

The evaluation matrix columns are the solutions of the dataset (e.g. a transient dataset with N stored times) and the response adds a compact solutions list mapping solnum -> time/parameter value. Defaults to a domain average (3D: AvVolume, 2D: AvSurface), which works for field variables; pass eval_type="global" for global-scope expressions.

Args: expressions: expressions, e.g. ["T"]. eval_type: alias like "average", "integral", "global", "max", "min" or an exact numerical type. kind: dimension for the alias: "volume"/"domain", "surface"/"boundary" or "line" (2D: boundaries). dataset: dataset containing all solutions (e.g. "dset2" after a transient solve). None = default dataset. entities: entity numbers of that dimension (default = all). named_selection: named selection instead of entities. 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_eval_all_solutions"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNovolume
modelNo
datasetNo
entitiesNo
eval_typeNoaverage
expressionsYes
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the default evaluation mode and the shape of the added response ('a compact solutions list mapping solnum -> time/parameter value'), which is real behavioral context, but it omits prerequisites (dataset must be solved), error behavior, and whether anything is persisted.

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?

Purpose is front-loaded in one sentence, followed by return-shape and default behavior, then a structured Args block. The Args duplication is justified by zero schema coverage; wording is tight with no filler.

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 7-parameter, undocumented-schema tool with no output schema, the description covers the parameter surface, default evaluation semantics, and return structure. What remains missing is prerequisite/failure context and explicit differentiation from the specialized evaluator siblings.

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 description coverage is 0%, and the description fully compensates: every one of the 7 parameters is explained with meaning beyond its type, including eval_type aliases ('average', 'integral', 'global', 'max', 'min' or an exact numerical type), kind's dimension vocabulary, entities defaulting to all, named_selection as an alternative to entities, and model=None meaning current model.

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?

Opens with a specific verb-and-resource statement: 'Evaluate an expression for every solution/time in a dataset.' The 'every solution/time' scope implicitly separates it from the point/line/surface/volume evaluators, though no sibling is named explicitly.

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?

Offers conditional guidance for one parameter ('Defaults to a domain average ... pass eval_type="global" for global-scope expressions'), which is genuinely useful. However, it never says when to choose this bulk evaluator over result_evaluate, result_eval_volume, or the other single-mode siblings, so tool selection is left to inference.

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