Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mat_rename

Rename a COMSOL material's display label and/or tag while keeping selections intact and updating tree references.

Instructions

Rename a material's display label and/or change its tag.

Args: tag: current material tag, e.g. "mat1". label: new display name shown in COMSOL (e.g. "Copper (annealed)"). new_tag: new material tag, e.g. "copper" (references in tree paths change; selections are kept). 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_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYes
labelNo
modelNo
new_tagNo
componentNocomp1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 burden. It usefully discloses a real side effect: changing new_tag alters references in tree paths while selections are kept. It omits other mutation-relevant behavior such as what happens on tag collision, on a nonexistent tag, or what the response contains.

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 one-line summary is front-loaded and the Args block is compact, scannable, and free of filler. The docstring format is appropriate for a five-parameter tool, with only minor redundancy between the summary and the parameter list.

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?

The description covers the parameter surface well for a five-param, 0%-coverage mutation tool and flags one important side effect. Given the complete absence of annotations and output schema, it should still say what a bad or missing new_tag yields and roughly what the call returns, so an agent can recover from errors.

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 largely does: every one of the five parameters is explained with examples ("mat1", "Copper (annealed)", "copper"), the meaning of component defaults including "" or "global", and model None meaning the current model. It does not explicitly mark label and new_tag as optional despite only tag being required.

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 first sentence gives a specific verb and resource: rename a material's display label and/or change its tag. The word "material" plus the COMSOL context distinguishes it reasonably from generic siblings like model_rename or tree_rename, though it never names an alternative 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 summary and by the "and/or" phrasing, which signals that either or both of label/new_tag may be supplied. There is no explicit when-to-use statement, no guidance on what to do if neither optional field is passed, and no routing to related tools such as mat_set_property or tree_rename.

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