Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_eval_line

Evaluate COMSOL line results by sampling expressions along a CutLine dataset or computing integral, average, max, min, standard deviation, or length over line entities and named selections.

Instructions

Evaluate on a line: pointwise along a CutLine dataset or line integrals.

  • dataset given (e.g. a CutLine3D dataset): Interp at all line points, returns coordinates + values + min/max/mean.

  • entities/named_selection given: line entities (dimension 1) evaluated with the kind operation: "integral" (IntLine), "average" (AvLine), "max"/"min", "stddev", "measure".

Args: expressions: expressions, e.g. ["T"]. dataset: CutLine3D dataset tag for pointwise sampling along the line. entities: line entity numbers (None = all line entities with kind op). named_selection: named line selection. kind: "integral" (default for entities is average), "average", "max", "min", "stddev", "measure". solnum: 1-based solution number(s) (None = all). max_points: cap on returned points for dataset sampling. 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_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoaverage
modelNo
solnumNo
datasetNo
entitiesNo
max_pointsNo
expressionsYes
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 does disclose meaningful behavior: the dataset branch returns coordinates + values + min/max/mean, max_points caps returned points, and solnum=None means all solutions. It never explicitly states the tool is side-effect free or what permissions/state it requires, which is a real gap given zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-line summary up front plus a bulleted Args block is a good structure. But the 'kind' options are enumerated twice — once in the second bullet and again in the Args entry — and RST artifacts (double backticks, mixed bullet/Args formatting) add noise without information.

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 an 8-parameter tool with no annotations and no output schema, the description covers the dataset branch's return shape but says nothing about what the entity/integral branch returns (scalar per entity? per solution?). Precedence between dataset and entities, and solnum list handling, are also unaddressed.

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 compensate, and it does document all eight parameters — including non-obvious semantics like '1-based' solnum, None-means-all for entities, and None-means-current-model for model. The 'expressions' entry is weak ("expressions, e.g. [\"T\"]") and adds little beyond the schema's type, and 'kind' semantics for the dataset branch are never spelled out.

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 line gives a specific verb+resource ('Evaluate on a line') and names the two data sources (CutLine dataset vs. line entities), which separates it from result_eval_point/surface/volume by geometry. It does not distinguish itself from scalar siblings such as result_integrate, result_average, or result_stddev, even though it exposes the same 'kind' operations.

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?

The two bullets give an explicit conditional: pass a dataset for pointwise sampling, or pass entities/named_selection for line integrals with a kind operation. That is clear mode-selection context. However, it never states what happens if both dataset and entities are supplied, and it names no alternative tool for the scalar-only cases.

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