Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mat_remove

Delete a material from a COMSOL component or global definitions by specifying its material tag, optional component tag, and model. Use it to clean up assigned materials in a model.

Instructions

Remove a material from a component (or from global definitions).

Args: tag: material tag, e.g. "mat1". component: component tag (default "comp1"); "" or "global". 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": {
      "tag": "<tag>"
    },
    "name": "mat_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYes
modelNo
componentNocomp1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 and mostly does not: it never states whether removal is reversible, what happens if the tag does not exist in the component, whether the material definition is destroyed globally or merely detached, or what is returned. It does at least reveal the default target ('comp1') and that global scope is selectable, which keeps this above 1.

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 sentence is front-loaded and the Args block is tight, one line per parameter with no filler. Slightly raw docstring formatting (the trailing 'Args:' block) costs a little polish but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with no annotations and no output schema, parameter meaning is covered well, but the description says nothing about the effect of the operation, failure behavior, or result. An agent can call it, but cannot fully predict the consequence of the 'global' form.

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: it explains the tag format ('mat1'), that component defaults to 'comp1' and that '' or 'global' selects the global definitions, and that model None means the current model. This is meaningful semantics the bare schema does not provide, though it omits any note on case sensitivity or tag uniqueness.

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?

The description gives a specific verb and resource (remove a material) plus a scope distinction: removal from a component versus from global definitions. It does not distinguish itself from siblings like mat_add, mat_assign, or mat_rename, so it stops short of a 5.

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 parenthetical '(or from global definitions)' together with the 'component' arg hints that global removal is an alternate mode, but there is no explicit when-to-use or when-not-to-use guidance versus mat_add or mat_assign, nor any prerequisites or confirmation advice.

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