Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_eval_volume

Evaluates expressions at every mesh node of a selected solution dataset, returning per-expression min, max, mean, and capped point values for field inspection.

Instructions

Evaluate a field on all mesh nodes of a solution dataset (pointwise).

API-only Eval feature: returns the expression sampled at every mesh node of the dataset (not an integral). Output includes per-expression min/max/mean and a capped value list. For volume integrals/averages use result_integrate(result_kind="volume") / result_average.

Args: expressions: expressions to evaluate, e.g. ["T"]. dataset: dataset tag that maps directly to a solution ("dset1"). max_points: cap on returned points (default 200). 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_eval_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
solnumNo
datasetNo
max_pointsNo
expressionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly succeeds: it discloses that this is an API-only Eval feature, that values are sampled at every mesh node, that output contains per-expression min/max/mean plus a capped value list, and that max_points defaults to 200. It omits any note on permissions, error behavior, or cost of evaluating large meshes.

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?

Front-loaded one-line summary followed by behavioral context and a compact Args block; every sentence carries information. The 'API-only ``Eval`` feature' phrasing is slightly internal, but not wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description describes the return shape (per-expression min/max/mean and a capped value list) as well as the cap mechanism via max_points. For a 5-parameter, no-annotation tool this covers what an agent needs to call it correctly and interpret results.

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%, so the description must compensate, and it does for every parameter: expressions with a concrete example (["T"]), dataset as a tag mapping directly to a solution ("dset1"), max_points as a cap with default 200, solnum as 1-based with None meaning all, and model with None meaning current model. This adds indexing convention, sentinel semantics, and format examples absent from the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (evaluate), resource (a field on all mesh nodes of a solution dataset), and scope qualifier (pointwise). The parenthetical '(not an integral)' and the named siblings result_integrate/result_average make it distinguishable without opening any schema.

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?

Explicitly routes integral/average use cases to result_integrate(result_kind="volume") and result_average, so the when-not is clear. It does not clarify how this differs from the point/line/surface/all-solutions eval siblings, but the guidance it does give is unambiguous.

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