Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

export_plot

Creates a COMSOL result plot export feature and optionally runs it to write a plot group's raw data to a file, with configurable properties and returned property details.

Instructions

Create (optionally run) a result Plot export feature.

The Plot export writes a plot group's raw data file. Available properties are returned so agents can discover the exact ones for their COMSOL version; property names can be passed via properties.

Args: tag: export feature tag. plotgroup: plot group tag to export (e.g. "pg1"). path: output file path; when given it is set with the first accepted filename property (filename / plotfilename). properties: extra properties for the export feature. run: run the export immediately (default True). model: model name/tag (None = current model).

Returns: {"tag", "type", "properties", "ran", "path", "size", "exists"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_plot"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNo
tagNoplot1
pathNo
modelNo
plotgroupNo
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 does disclose that this is a write operation creating a file on disk, that `path` is applied via the first accepted filename property, and it lists the returned fields including `size` and `exists`. It stops short of saying what happens to an existing file at that path, whether the feature persists after creation, or what errors look like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The mutation and optional-run behaviour is front-loaded in the opening sentence, then structured Args/Returns sections follow with no filler. The reST double-backticks add minor visual noise but no wasted content.

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 six-parameter mutation tool with no annotations and no output schema, the definition covers purpose, every argument, and the shape of the returned dictionary. The remaining gap is environmental behaviour on disk (overwrite, permissions, failures), which matters more here precisely because nothing else documents it.

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 six parameters is explained with added meaning — `plotgroup` gets a concrete example (``"pg1"``), `model` documents None as the current model, `run` gives its default, and `path` explains the filename-property fallback. `properties` remains the weakest, described only as 'extra properties' with discovery delegated to the return value.

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 line gives a specific verb and resource: create (and optionally run) a ``Plot`` export feature, and the following sentence clarifies it writes a plot group's raw data file. That distinguishes it in substance from image-style export siblings, but no sibling is explicitly named, so an agent must infer the boundary itself.

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 description — use it when you want the plot group's raw data file written — and the `run` default of True is disclosed. There is no explicit when-not guidance, no mention of which sibling to pick for image export versus data export, and no prerequisites stated.

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