Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_evaluate

Evaluate COMSOL model results by selecting an evaluation type, expressions, dataset, entities, or coordinates to compute global, field, integral, average, min/max, and measure values.

Instructions

Generic result evaluation with an explicit evaluation type.

One tool for all COMSOL 6.4 evaluation types. eval_type accepts friendly aliases (below) or an exact type string from catalog_numerical_types.

Aliases: global, point/interp (arbitrary coordinates), eval_point (geometry points), field/domain (whole solution field), int_volume, int_surface, int_line, av_volume, av_surface, av_line, max_volume, max_surface, max_line, min_volume, min_surface, min_line, stddev_*, measure_volume, measure_surface, measure_line, measure_distance, mass/mass_properties, api_global.

Units are reported per expression; complex results include imaginary rows. Results are capped at max_output_items.

Args: eval_type: alias or exact numerical type (e.g. "av_volume", "EvalGlobal"). expressions: COMSOL result expressions, e.g. ["T"] or ["ht.ntflux"]. Required except for the Measure* types. dataset: dataset tag (None = feature default, usually the first solution dataset). For "field" use a solution dataset; for "point" use a solution dataset and pass coords. entities: entity numbers of the feature dimension (3=domains, 2=boundaries, 1=edges, 0=points in 3D), or "all" (default for volume/surface/line integrals/averages/min/max/measures). named_selection: named selection tag instead of entities. coords: for "point"/"interp": [[x, y, z], ...] evaluation coordinates. solnum: 1-based solution number(s), e.g. [2] or [1,2,3] (None = all). table: table tag to store the result in (adds "table" payload). properties: extra raw COMSOL properties. 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": {
      "eval_type": "<eval_type>"
    },
    "name": "result_evaluate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
tableNo
coordsNo
solnumNo
datasetNo
entitiesNo
eval_typeYes
propertiesNo
expressionsNo
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose meaningful behavior: units are reported per expression, complex results include imaginary rows, results are capped at max_output_items, and passing a table tag adds a 'table' payload. It stops short of describing error conditions, whether the operation is strictly read-only, or what happens on invalid entity/dataset combinations.

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 lead sentence and alias list come first, and every subsequent line is information-dense rather than filler. The long alias enumeration is the most expensive part but it earns its place since eval_type is the required discriminator. The Args block is verbose but not redundant.

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 10-parameter, annotation-free tool with no output schema, the description covers parameters and several result-shaping behaviors adequately. Remaining gaps are the return payload shape (beyond the mention of a 'table' payload) and failure modes, which matter given how many parameter combinations can be invalid.

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 there are 10 parameters, so the description must compensate entirely. It documents every one of them, including the non-obvious conventions: entity numbers map to topological dimension (3=domains down to 0=points), entities defaults to 'all' for integral/average/measure types, solnum is 1-based, coords take [[x,y,z],...] form, and dataset None means the feature default.

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 clear verb and resource (generic result evaluation) and scopes it as 'One tool for all COMSOL 6.4 evaluation types,' which tells an agent this is the superset dispatcher. The enumerated alias vocabulary makes the tool's reach concrete, but there is no explicit statement contrasting it with the many specialized siblings (result_average, result_integrate, result_minmax), so the differentiation is implied rather than stated.

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

Usage Guidelines4/5

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

Provides real conditional guidance: expressions are 'Required except for the Measure* types,' and 'For "field" use a solution dataset; for "point" use a solution dataset and pass coords.' It also routes to catalog_numerical_types for exact type strings. What it lacks is any statement of when to prefer this generic tool over the per-type siblings, or when not to use it.

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