Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

study_set_property

Set properties on a study step to configure simulation parameters like time lists, frequencies, eigenvalues, and parametric sweeps for COMSOL studies.

Instructions

Set properties on a study step (time list, frequencies, eigenvalues, ...).

Args: study: study tag. step: study-step tag (see study_steps). properties: property name -> value, e.g. {"tlist": "range(0,0.05,0.5)"} (Transient time list; string expressions are accepted and expanded by COMSOL), {"plist": ["10", "20", "30"], "punit": ["Hz"]} (frequency), {"neigs": 6, "shift": "10[Hz]"} (eigenfrequency), {"pname": ["k"], "plist": ["1", "5", "10"]} (parametric sweep). model: model name/tag (None = current model).

Property values: strings for expressions, numbers for numeric fields, lists of strings for string arrays. Read current values with study_steps or tree_properties.

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": {
      "study": "<study>",
      "step": "<step>",
      "properties": "<properties>"
    },
    "name": "study_set_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepYes
modelNo
studyYes
propertiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 behavioral detail beyond structure — string expressions are 'accepted and expanded by COMSOL', and it spells out expected value types per property kind (strings for expressions, numbers for numeric fields, lists for string arrays). However, it says nothing about whether the model must be loaded/solved, what happens on an invalid property name, or whether the change is persisted or reversible.

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?

The purpose is front-loaded in one line, then structured Args follow, with every example pairing a realistic property with its intended value shape. Slightly redundant that study_steps is referenced twice (in the step arg and in the closing read-values hint), but nothing is padding.

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 four-parameter mutation tool with no annotations and no output schema, the definition covers purpose, argument meaning, value typing, and how to verify current state via sibling tools. The remaining gap is error/failure behavior and required model state, which no structured field supplies.

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 does so thoroughly: study tag, step tag with a pointer to study_steps, model ('None = current model'), and a rich properties map with four concrete key/value examples covering transient, frequency, eigenfrequency, and parametric sweeps. This gives an agent enough semantic grounding to construct correct calls without guessing.

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 and resource ('Set properties on a study step') and immediately scopes the domain with parenthetical examples (time list, frequencies, eigenvalues). This distinguishes it from siblings that act on studies, meshes, or physics interfaces, though it never explicitly contrasts against close siblings like study_set_options or tree_set_property.

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 context is implied: the 'step' arg points to study_steps, and the closing line tells the agent to read current values with study_steps or tree_properties before/after setting. There is no explicit when-to-use vs. when-not-to-use guidance and no mention of study_set_options as an alternative for a different kind of setting.

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