Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

plot_add_feature

Add a plot feature or attribute, such as Surface, Slice, or Arrow, to an existing plot group, with optional expression and color settings.

Instructions

Add a plot feature (or an attribute) to a plot group.

Args: plotgroup: target plot group tag (see plot_list). feature_type: COMSOL plot type, e.g. Surface, Volume, Slice, Isosurface, Contour, ArrowSurface, ArrowVolume, ArrowLine, Streamline, Line, Point, Mesh, LineGraph, PointGraph, Global. Attributes Deform/Height/Filter/Transparency require parent. See plot_types. tag: feature tag (auto e.g. surf1 when omitted). parent: plot feature tag when adding an attribute (e.g. "surf1"), or a nested path for deeper nodes ("surf1/def1"). expr: expression to plot. Scalar e.g. "T", "ht.T", or vector components comma-separated "ht.dfluxx,ht.dfluxy,ht.dfluxz". Arbitrary COMSOL expressions incl. units might work, e.g. "T-293.15[K]". properties: extras such as colortable ("Rainbow", "ThermalLight"), colorlegend (on/off), unit, rangecoloractive/rangecolormin/rangecolormax, smooth, title. Values may be strings or numbers. label: display label for the feature. model: model name/tag (None = current model).

Example: plot_add_feature("pgT", "Surface", expr="T", properties={"colortable": "ThermalLight"})

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": {
      "plotgroup": "<plotgroup>",
      "feature_type": "<feature_type>"
    },
    "name": "plot_add_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
exprNo
labelNo
modelNo
parentNo
plotgroupYes
propertiesNo
feature_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses the creation behavior, parent dependency for attributes, automatic tag generation, and expression/property usage, but it does not describe side effects, failure modes, permissions, or whether duplicate tags overwrite existing features.

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 first sentence front-loads the purpose, and the argument list is organized and mostly earns its space given the eight parameters. The long `feature_type` enumeration is useful but makes the definition wordier than strictly necessary.

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 complex creation tool with eight parameters, no annotations, and no output schema, the description covers all inputs and key dependencies well enough to call the tool. It is missing return-value behavior and fuller mutation side-effect details, which keeps it from being fully complete.

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%, but the description documents all eight parameters in detail. It gives concrete `feature_type` examples, `parent` path examples, `expr` examples including vector components and units, and `properties` examples such as `colortable` and `colorlegend`.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: add a plot feature or attribute to a plot group. It also distinguishes feature addition from attribute addition by noting that attributes such as Deform/Height/Filter/Transparency require a `parent`.

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?

It gives clear usage context: target a plot group, choose a COMSOL plot type, use `parent` for attributes, and see `plot_list`/`plot_types` for reference. It stops short of explicitly naming when to use a sibling such as `plot_group_create` or `plot_set_properties` instead.

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