Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_measure

Measure volume, surface area, edge length, or point-to-point distance in COMSOL results. Specify dataset, entities or named selections, and store measurements in a table.

Instructions

Measure volume / area / line length / distance between two points.

Dimension-aware COMSOL types (verified): 3D -> MeasureVolume (domains) / MeasureSurface (boundaries) / MeasureLine (edges); 2D -> MeasureSurface (domain area) / MeasureLine (boundary length). "distance" always uses MeasureDistance with exactly two point entities.

Args: kind: "volume"/"domain", "surface"/"boundary", "line"/"edge" or "distance" ("distance" needs exactly two point entities). dataset: dataset tag (None = default solution dataset). entities: entity numbers; for "distance" exactly two point entities. named_selection: named selection instead of entities. solnum: 1-based solution number(s) (None = all). table: table tag to store the result in. model: model name/tag (None = current model).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "result_measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNovolume
modelNo
tableNo
solnumNo
datasetNo
entitiesNo
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose useful behavior: dimension-aware type resolution, default dataset when dataset is None, 1-based solnum where None means all solutions, and that results can be stored in a table. It says nothing about what is returned, whether measuring is read-only, or failure modes for invalid entities.

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 purpose, followed by the verified type mapping and a clean per-argument list. The arg block is somewhat long, but it is justified given the 0% schema coverage and no redundant sentences are present.

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 seven-parameter tool with no annotations and no output schema, the description covers type selection, entity requirements, dataset/table/model defaults, and solnum semantics. The remaining gap is the return contract (measured value returned vs. only written to a table), which matters here because there is no output schema to fall back on.

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?

With schema description coverage at 0%, the description is the only source of parameter meaning, and it documents all seven parameters including defaults (None = current model, None = default solution dataset, None = all solutions). It also supplies the accepted kind values ('volume'/'domain', 'surface'/'boundary', 'line'/'edge', 'distance'), which the schema lacks as enums. Entity/CDS number formats and solnum list syntax remain only loosely specified.

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 specific verb+resource: measure volume / area / line length / distance between two points, and enumerates the dimension-to-COMSOL-type mapping so the agent knows exactly which measurement type each geometry produces. It does not explicitly contrast itself with measurement siblings such as result_eval_volume or geom_measure, so sibling differentiation relies on inference.

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?

Usage is implied through the kind argument, especially the rule that 'distance' always uses MeasureDistance with exactly two point entities and that 2D vs 3D change the meaning of the measure types. There is no explicit when-to-use / when-not-to-use guidance versus alternatives like result_eval_volume or geom_measure, leaving the agent to infer selection.

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