Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_create

Creates a raw COMSOL derived-value feature for advanced custom result evaluation when standard evaluate, integrate, average, or min/max operations do not fit.

Instructions

Create a raw derived-value feature (advanced; low-level escape hatch).

Prefer result_evaluate / result_integrate / result_average / result_minmax for normal use. type is one of catalog_numerical_types (e.g. "IntVolume", "EvalGlobal", "MassProperties", "Eval", "Interp", "Global").

Args: type: numerical feature type. tag: feature tag (None = auto "evN"). dataset: dataset tag to evaluate on (None = COMSOL default). expressions: COMSOL result expressions, e.g. ["T", "ht.ntflux"]. entities: entity selection (list of ints), or "all". named_selection: name of a model selection to use instead of entities. solnum: 1-based solution number(s) to evaluate (None = all). table: table tag to store the result in (result_table_create). properties: raw COMSOL properties to set (dataset_info/tree_properties). run: run the feature immediately (default False). 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": {
      "type": "<type>"
    },
    "name": "result_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNo
tagNo
typeYes
modelNo
tableNo
solnumNo
datasetNo
entitiesNo
propertiesNo
expressionsNo
named_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.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 disclosure burden. It does add real behavior: `run` defaults to False (so creation does not imply evaluation), `tag=None` auto-generates 'evN', `dataset=None` falls back to the COMSOL default, and `solnum` is 1-based — but it never states whether the new feature persists in the model tree, what is returned (a tag? a feature object?), or what errors occur on invalid type/expressions.

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

Conciseness5/5

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

Front-loaded with the escape-hatch warning and the preferred alternatives before any parameter detail, then a compact Args block. The example type values ('IntVolume', 'EvalGlobal', ...) are directly actionable rather than filler, and no sentence is redundant.

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 an 11-parameter mutation tool with no annotations and no output schema, the definition covers routing, defaults, cross-references (catalog_numerical_types, result_table_create), and every parameter. The remaining gap is the return value and persistence semantics, which an agent would otherwise have to guess.

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 description coverage is 0% and there are 11 parameters, so the description must compensate — and it does, documenting every parameter with meaning beyond the bare titles: `type` must come from catalog_numerical_types (with concrete examples), `entities` accepts a list of ints or 'all', `named_selection` is an alternative to `entities`, `solnum` is 1-based, and `properties` are raw COMSOL dataset_info/tree_properties values.

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?

The first line states a specific verb and resource — 'Create a raw derived-value feature' — and immediately frames it as an 'advanced; low-level escape hatch'. It explicitly names the siblings (result_evaluate, result_integrate, result_average, result_minmax) that cover normal use, so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives an explicit when-not-to-use rule ('Prefer ... for normal use') and names four concrete alternatives, leaving the escape-hatch case as the only reason to pick this tool. Nothing about routing is left to inference.

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