Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_eval_surface

Evaluate field expressions pointwise on a surface or cut-plane dataset, returning coordinates, values, and min/max/mean statistics for each expression.

Instructions

Evaluate a field on a surface/cut-plane dataset (pointwise values on it).

Uses the API-only Interp feature with the given dataset (create it with dataset_create, e.g. type="CutPlane"). Returns coordinates and values at the dataset points plus min/max/mean per expression.

Args: expressions: expressions to evaluate, e.g. ["T"]. dataset: CutPlane/Surface dataset tag (e.g. "cpl1"). solnum: 1-based solution number(s) (None = all). max_points: cap on returned points (default 200). 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>",
      "dataset": "<dataset>"
    },
    "name": "result_eval_surface"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
solnumNo
datasetYes
max_pointsNo
expressionsYes

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, the description carries the burden and does well: it reveals the return shape (coordinates and values plus min/max/mean per expression), the max_points default cap of 200, and that solnum=None means all solutions. It omits any note on permissions or error behavior, keeping it short of a 5.

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-loads the core purpose, then adds the Interp/return detail, then a structured Args list. Efficient overall, though the "API-only Interp feature" aside is somewhat incidental to invocation.

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 5-param tool with no output schema and no annotations, the description covers purpose, prerequisites, all parameters, return contents, and a point cap. Only minor gaps (permissions, behavior on empty/oversized results) remain.

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: expressions example (["T"]), dataset example ("cpl1"), solnum as 1-based with None=all, max_points cap default, and model None=current. All five parameters are given meaning beyond 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") and resource ("a field on a surface/cut-plane dataset"), and the parenthetical "pointwise values on it" clarifies the scope. This lets an agent separate it from siblings like result_eval_line, result_eval_volume, or result_eval_point without opening a schema.

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?

It gives a concrete prerequisite: the dataset must be created with dataset_create (e.g. type="CutPlane"), which is real context for correct invocation. However, it never explicitly says when to choose this over the sibling evaluators (line/volume/point).

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