Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

phys_set_property

Set a single property on a COMSOL physics feature, such as a temperature boundary condition value, using COMSOL unit syntax. Invalid property names return available properties and close matches.

Instructions

Set one property on a physics feature (e.g. T0 of a temperature BC).

Invalid property names return the available properties and close matches. Expressions use COMSOL unit syntax: "400[K]", "1e4[W/m^2]".

Args: interface: interface tag/label/type (e.g. "ht"). feature: feature tag or label (e.g. "temp1"). name: COMSOL property name (e.g. "T0", "q0_input", "h", "V0"). value: property value (string with units, number, bool or list). 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": {
      "interface": "<interface>",
      "feature": "<feature>",
      "name": "<name>",
      "value": "<value>"
    },
    "name": "phys_set_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
modelNo
valueYes
featureYes
interfaceYes

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?

With no annotations at all, the description carries the full burden. It does disclose meaningful behavior: it mutates exactly one property, invalid names return available properties plus close matches, values are parsed with COMSOL unit syntax like "400[K]", and model defaults to the current model. It does not say whether the change triggers a geometry/mesh rebuild, whether it is reversible, or what a successful call returns.

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-loads the core purpose in the first sentence, then adds the two non-obvious behavioral facts (error recovery, unit syntax), then a compact Args list. No filler sentences; the Args block slightly restates the schema but is justified by zero schema description coverage.

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 five-parameter mutation tool with no annotations and no output schema, the definition covers purpose, identifier forms, value syntax, and failure behavior — enough to invoke it correctly. Remaining gaps are the success return value and side effects such as whether setting a property invalidates downstream solutions or triggers rebuilds.

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%, and the description compensates well by documenting all five parameters in an Args block with examples: interface as tag/label/type ("ht"), feature ("temp1"), name ("T0", "q0_input", "h"), value's accepted forms (string with units, number, bool, list), and model's None-means-current default. The 'tag/label/type' phrasing for interface is slightly ambiguous about which identifier form is expected.

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 concrete verb and resource: 'Set one property on a physics feature', with a clarifying example (T0 of a temperature BC). The word 'one' plus 'physics feature' scopes it relative to siblings like phys_set_interface_property and mat_set_property, though it never names those alternatives explicitly.

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 — the reader infers this is the tool for changing an existing feature's property value rather than adding features (phys_add_bc) or selecting entities (phys_set_selection). It adds a useful recovery hint (invalid names return available properties and close matches) but gives no explicit when-not or prerequisite guidance such as needing the feature to already exist.

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