Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_stddev

Compute the standard deviation of COMSOL expressions over selected domains, boundaries, or edges to assess spatial variation in simulation results across a model, dataset, or solution.

Instructions

Standard deviation of expressions over domains/boundaries/edges.

Dimension-aware COMSOL types (verified): 3D -> StdDevVolume / StdDevSurface / StdDevLine; 2D -> StdDevSurface (domains) / StdDevLine (boundaries).

Args: expressions: expressions, e.g. ["T"]. kind: "volume"/"domain", "surface"/"boundary" or "line"/"edge" (2D: boundaries). dataset: dataset tag (None = default solution dataset). entities: entity numbers of the resolved dimension (default = all). named_selection: named selection instead of entities. 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_stddev"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNovolume
modelNo
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 burden, and it does disclose useful behavior: dimension-aware COMSOL type resolution and default fallbacks (None = default solution dataset, current model, all entities, all solutions). It says nothing about what is returned (scalar vs per-entity vs per-solution values) or error behavior for mismatched entity counts, which are the main risks here.

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 with the one-line purpose, followed by the dimension mapping and then a compact per-argument block. Every line carries information, though the prose-in-docstring formatting is slightly heavier than needed.

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 7-parameter tool with no annotations and no output schema, the definition covers inputs thoroughly but leaves the return shape undefined, which matters when entities and solnum can both expand the result. An agent knows how to call it but not what to expect back.

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 largely does: all seven parameters are explained, defaults not present in the schema (entities default all, solnum None = all) are stated, and the 'kind' string values are enumerated where the schema supplies no enum. It falls short of 5 because the expressions example ("T") and entity-number resolution rules are thin.

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 computation (standard deviation) over a specific resource (expressions evaluated on domains/boundaries/edges), which is enough to separate it from result_average or result_integrate without opening the schema. It does not explicitly name a sibling to contrast with, so it stops short of full differentiation.

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 only implied by the statistic name; there is no statement of when to prefer this over result_average or result_minmax, nor any prerequisite or exclusion. The dimension/type notes (3D vs 2D, boundaries vs edges) do give partial operational guidance on choosing 'kind'.

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