Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_eval_point

Evaluate COMSOL result expressions at arbitrary coordinates or geometry points, returning values for specified datasets, solutions, and point selections.

Instructions

Evaluate expressions at arbitrary coordinates (or at geometry points).

Coordinate evaluation uses the API-only Interp feature (verified working on Solution and CutLine/CutPlane datasets). Geometry-point evaluation uses EvalPoint with point entity numbers.

Args: expressions: expressions to evaluate, e.g. ["T"]. coords: [[x, y, z], ...] coordinates (3 components for 3D, 2 for 2D). Evaluated with Interp; results include the coordinates. dataset: dataset tag; for coords usually the solution dataset (e.g. "dset1", or "dset2" for a transient solution at all times). entities: geometry point numbers for EvalPoint (e.g. [1, 2]); use instead of coords. Point entities have dimension 0. named_selection: named point selection for EvalPoint. solnum: 1-based solution number(s) (None = all solutions). 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_point"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
coordsNo
solnumNo
datasetNo
entitiesNo
expressionsYes
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that coordinate evaluation relies on the API-only Interp feature and that this was 'verified working on Solution and CutLine/CutPlane datasets', which is valuable limitation context, plus that results include the coordinates. However, it never states the operation is read-only in effect, what errors/empty results look like, or how the different evaluation backends change the returned shape.

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 one-line purpose is front-loaded and the Args block is scannable, with each parameter on its own entry and examples inline. Some sentences, such as the parenthetical about dset2 for transient solutions, are dense but still earn their place; there is little outright filler.

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 a seven-parameter tool with no annotations and no output schema, the description covers inputs and the two evaluation paths but stops short of describing the return structure beyond 'results include the coordinates'. It also omits mutual exclusivity rules (coords vs entities vs named_selection) and any failure behavior, leaving gaps an agent would need to discover by trial.

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 must document all seven parameters, and it largely does: expressions, coords (3 vs 2 components, results include coordinates), dataset (with the dset1/dset2 transient nuance), entities (point entity numbers, dimension 0), solnum (1-based, None = all solutions), model (None = current model), and named_selection. The weak spot is named_selection, which only gets the phrase 'named point selection for EvalPoint' with no relationship stated to entities.

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 sentence states a specific verb ('Evaluate') and resource ('expressions') and immediately scopes it to two modes: arbitrary coordinates or geometry points. It implicitly separates the tool from regional siblings like result_eval_line/surface/volume by defining the input as raw coordinate arrays or point entity numbers, though it never names those alternatives 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?

The description does give real mode-selection guidance: use 'coords' with Interp or 'entities'/'named_selection' with EvalPoint, and it notes that coords usually take the solution dataset ('dset2 for a transient solution at all times'). What it lacks is advice on when this tool is preferable to siblings such as result_eval_global or result_evaluate, and any prerequisites for point entities (dimension 0 is mentioned but not framed as a constraint to check).

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