Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

phys_toggle_feature

Enable, disable, or toggle a COMSOL physics feature by interface and feature tag, optionally for a specific model, to control which physics effects remain active in simulations.

Instructions

Enable/disable a physics feature (None = flip its current state).

Args: interface: interface tag/label/type (e.g. "ht"). feature: feature tag/label (e.g. "temp1"). active: True=enable, False=disable, None=toggle. 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": "phys_toggle_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
activeNo
featureYes
interfaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses that the call mutates feature state and that None flips it, but says nothing about required permissions, what happens when the interface/feature tag is unknown, whether the change persists across solves, or what is returned, which is a meaningful gap for a state-mutating 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?

One summary line front-loads the behavior and the argument list is terse with one clause per parameter, each adding distinct information. No filler or redundancy.

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 description covers intent, per-parameter meaning, and the None defaults, which is most of what an agent needs. Missing are error/failure behavior and any note on side effects on dependent features.

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 does document all four parameters: interface as a tag/label/type with an example, feature as a tag/label with an example, active as True/False/None with the toggle meaning, and model with None meaning the current model. Only the exact accepted string formats for tags remain unspecified.

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?

"Enable/disable a physics feature (None = flip its current state)" names a specific verb pair and resource, and the toggle semantics are stated outright. It is clearly distinct from phys_add_feature and phys_remove_feature, though it never names those siblings 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 implied by the enable/disable framing, and the None=toggle behavior tells the agent how to flip state without knowing the current value. However, it never states when to prefer this over phys_remove_feature/phys_add_feature or over a generic property setter such as phys_set_property, nor are prerequisites given.

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