Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mat_set_property

Set one COMSOL material property using a tag, property name, and value expression, including anisotropic or array entries, to define material behavior in a model.

Instructions

Set one material property (a COMSOL expression with units).

Args: tag: material tag, e.g. "mat1". property: property name, e.g. "thermalconductivity", "density", "heatcapacity", "youngsmodulus". Use mat_properties first to see valid names for the material. value: expression string ("400[W/(m*K)]"), number, or list of expressions for anisotropic/array properties (9 values for a 3x3 tensor). group: property group tag (default "def" = Basic). index: optional index for setting one element of an array property. component: component tag (default "comp1"); "" or "global". model: model name/tag (None = current model). Example: mat_set_property(tag="mat1", property="density", value="8000[kg/m^3]")

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": {
      "tag": "<tag>",
      "property": "<property>",
      "value": "<value>"
    },
    "name": "mat_set_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYes
groupNodef
indexNo
modelNo
valueYes
propertyYes
componentNocomp1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose useful behavior: expression-with-units values, numeric values, lists for anisotropic/array properties, 3x3 tensor size, group default, index behavior, and component/global handling. However, it does not describe overwrite semantics, model prerequisites, permissions, or return behavior for a mutation tool.

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?

The purpose is front-loaded, then the args and example are clearly structured. Given the 0% schema coverage, the parameter explanations and example earn their place and contain no filler.

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 7-parameter mutation tool with no annotations and no output schema, the description is quite complete on the input side and gives an example call. It still leaves out side-effect details such as overwrite behavior and what is returned, so it is strong but not exhaustive.

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%, so the description must compensate, and it does: every parameter is explained, including tag, property examples, value formats, group default "def" as Basic, optional index, component default "comp1" and "" or "global", and model/current-model behavior.

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 description states a specific verb and resource: "Set one material property" as a COMSOL expression with units. It scopes the operation to material properties and names mat_properties as the discovery path for valid property names, making it distinguishable from other property-setting siblings.

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?

It gives a clear prerequisite/alternative for property-name discovery: "Use mat_properties first to see valid names for the material." It also provides a concrete usage example, but does not explicitly state when not to use this tool or which sibling to use for broader material creation or multi-property edits.

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