Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

plot_export_plot_data

Exports raw rendered plot-feature data vectors to CSV, such as line graph heights or 3D surface color values, so you can analyze or reuse the exact values COMSOL displays.

Instructions

Export the raw rendered data vectors of a plot feature to CSV.

COMSOL returns the data it renders per feature: for a LineGraph the y-values (data type "Height"), for a 3D Surface the expression values ("Color"). The CSV has one column per data vector (header = data type name). This complements result_export_data (Data export feature, owned by the results tools).

Args: plotgroup: plot group tag to read data from. feature: plot feature tag (defaults to the first feature). path: output CSV path (auto under artifact root when omitted). max_points: cap values written per column. model: model name/tag (None = current model).

Returns: {"path","size","rows","columns","headers","feature","data_types"}.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
modelNo
featureNo
plotgroupYes
max_pointsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 and does disclose useful behavior: CSV has one column per data vector with the data type name as header, feature defaults to the first feature, path defaults under the artifact root, and max_points caps values per column. However, it never says whether an existing file at a given path is overwritten, whether the operation is safe/idempotent, or what happens on failure or missing features — key gaps for a tool that writes to disk.

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?

It is front-loaded with the one-line purpose, then structured into a behavior paragraph plus Args and Returns blocks, all of which earn their place. Minor waste from reStructuredText double-backtick markup and the somewhat academic LineGraph/Surface example, but nothing extraneous enough to obscure the core.

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?

There is no output schema, and the Returns block correctly compensates by listing the response keys (path, size, rows, columns, headers, feature, data_types). With no annotations and five documented parameters, the only real omissions are file-overwrite semantics and failure behavior, which keep it out of the top band.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args block does real work: it explains plotgroup (tag to read data from), feature (tag, defaults to first), path (auto under artifact root when omitted), max_points (cap per column), and model (None = current model). That covers all five parameters, but it adds no format or syntax hints for tags (e.g., how plot group tags are obtained) and does not explain what max_points truncation does to fidelity — the strongest possible coverage would be a 4-5.

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 first sentence names a specific verb and resource (export raw rendered data vectors of a plot feature to CSV) and the second explains the payload shape with concrete examples for LineGraph (y-values, "Height") versus 3D Surface ("Color"). It also explicitly positions itself against the sibling result_export_data, so an agent can distinguish the two without opening a schema.

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 description states the tool complements result_export_data, which is owned by the results tools, giving a clear routing rule for the most likely confusion (plot feature data vs. Data export feature). It does not give an explicit when-not or mention plot_export_image/export_plot alternatives, so it stops short of full guidance.

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