Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

plot_quick

Create a COMSOL plot group and feature, render the result, and export a validated image in one call. Specify an expression, plot type, and export settings to get a ready-to-use plot file.

Instructions

One-call plot: create group + feature, render, export a validated image.

Args: expr: COMSOL expression to plot, e.g. "T", "ht.T", "u,v,w" (vector components comma-separated for arrows / streamlines). plot_type: surface (3D, default) | volume | slice | isosurface | contour | arrow_surface | arrow_volume | arrow_line | streamline | line | point | global | surface2d | contour2d | arrow2d. dataset: dataset tag (e.g. "dset1", "cpl1", "cln1"); COMSOL default solution dataset when omitted. title: plot title. colortable: color table, e.g. "Rainbow", "ThermalLight", "GrayScale", "Wave". width: image width px (default 1200). height: image height px (default 900). imagetype: png (default) | jpeg | bmp. path: output image path (auto under artifact root when omitted). plotgroup: reuse this plot group tag instead of creating a new one. model: model name/tag (None = current model).

Returns: {"ok", "plotgroup", "feature", "plot_type", "path", "size", "width", "height", "format", "valid"}.

Example: plot_quick("T", plot_type="surface", colortable="ThermalLight", title="Temperature")

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": {
      "expr": "<expr>"
    },
    "name": "plot_quick"
  }
}

Input Schema

NameRequiredDescriptionDefault
exprYes
pathNo
modelNo
titleNo
widthNo
heightNo
datasetNo
imagetypeNopng
plot_typeNosurface
plotgroupNo
colortableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior: it creates a plot group and feature in the model (a state mutation), auto-writes output under the artifact root when path is omitted, falls back to the current model, and returns a "valid" flag confirming the image was checked. It says nothing about overwrite semantics, whether an existing group is mutated when plotgroup is supplied, or what happens on a failed render.

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 one-line summary followed by an Args/Returns/Example block is a tidy, scannable structure with no filler. It is dense but every line corresponds to a real parameter or return key; the Returns list is justified since no output schema exists.

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 an 11-parameter tool with 0% schema coverage, no annotations, and no output schema, the definition covers parameters, defaults, valid values, return keys, and a working example. The remaining gap is operational context: prerequisites (open model, existing dataset) and failure/error behavior are unstated.

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%, and the description fully compensates: all 11 parameters get meaning, units, and defaults (width/height px default 1200/900, imagetype png/jpeg/bmp, path auto under artifact root, model None = current model). The expr argument explains the acceptable COMSOL expression form including vector comma syntax, and plot_type enumerates all 15 legal values with the default flagged.

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?

"One-call plot: create group + feature, render, export a validated image" names a concrete verb chain and resource, and the phrase "One-call" distinguishes it from the multi-step siblings (plot_group_create + plot_add_feature + plot_run + plot_export_image). An agent can tell exactly what this does without opening the schema.

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: "One-call" suggests the convenience path over the granular plot_* tools, and the plotgroup arg hints at reuse-versus-create. There is no explicit statement of when to prefer this over plot_add_feature/plot_export_image, nor any when-not condition or prerequisite (e.g. an open model, a solved study).

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