Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

study_duplicate

Duplicates a COMSOL study node under an optional new tag and returns an actionable error suggesting model_clone when the API does not support copying.

Instructions

Duplicate a study node (best effort - unsupported by COMSOL 6.4 API).

Args: study: tag of the study to duplicate. new_tag: tag for the copy (None = automatic "_copy"). model: model name/tag (None = current model).

Note: the COMSOL 6.4 client API rejects Study.duplicate()/copy() with "unsupported operation"; this tool then returns an actionable error and suggests model_clone. It is kept for future COMSOL versions.

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>"
    },
    "name": "study_duplicate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
studyYes
new_tagNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the failure mode (unsupported operation in COMSOL 6.4), the resulting behavior (returns an actionable error rather than silently failing), and the rationale for keeping the tool (future COMSOL versions). It stops short of describing what a successful call returns or how the automatic tag is reported back.

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-loaded with the verb and the critical caveat, then a compact Args block, then the behavioral note. The only waste is mild redundancy between 'unsupported by COMSOL 6.4 API' in the first line and the Note that repeats the same rejection detail.

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 three-parameter tool with no annotations and no output schema, the description covers purpose, all parameters, the failure path, and the recommended alternative. The main omission is the success-case return value (e.g. the new tag), which an agent would need to chain a follow-up call.

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: each of the three parameters is explained, including the non-obvious null semantics ('None = automatic "<study>_copy"' and 'None = current model'), which the schema's bare default:null does not convey. The 'study' entry only restates the name, which keeps it from a 5.

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 ('Duplicate a study node') and immediately qualifies it with 'best effort - unsupported by COMSOL 6.4 API', so an agent knows exactly what the tool intends to do and that it currently cannot. It does not positively delineate its scope from study_create or model_clone, though it does name model_clone as the fallback.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The note effectively tells the agent when not to rely on this tool ('the COMSOL 6.4 client API rejects Study.duplicate()/copy()') and where to go instead ('suggests ``model_clone``'). It gives clear context but is phrased as a caveat rather than explicit routing guidance, and it never says when this tool would be the right choice.

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