Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

plot_set_properties

Set properties on a COMSOL plot group or specific plot feature; invalid names return the available properties for correction.

Instructions

Set properties on a plot group or on one of its plot features.

Invalid property names return the complete list of available properties read live from the node (use plot_properties to inspect first).

Args: plotgroup: plot group tag. properties: mapping of COMSOL property -> value, e.g. {"colortable": "Rainbow", "colorlegend": "on"} on a feature, or {"title": "My plot", "showlegends": "off"} on a group. feature: plot feature tag (or nested "surf1/def1"). When omitted the properties are set on the plot group itself. model: model name/tag (None = current model).

Example: plot_set_properties("pg1", {"showlegends": "off", "title": "T [K]"}) plot_set_properties("pg1", {"colortable": "ThermalLight"}, feature="surf1")

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

Input Schema

NameRequiredDescriptionDefault
modelNo
featureNo
plotgroupYes
propertiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 usefully discloses failure behavior (invalid names return the live list of available properties) and the feature-vs-group targeting rule, but says nothing about whether existing property values are overwritten, whether permissions or an existing plot group are required, or what a successful response looks 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?

Front-loaded one-line purpose, then the error behavior, then Args and two runnable examples. Every block adds information an agent needs; nothing is repeated from the schema or wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation tool with a free-form nested properties dict, no annotations, and no output schema, the definition covers targeting, value format, examples, and error recovery. That is sufficient for an agent to invoke it correctly without further exploration.

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: it documents plotgroup as the tag, properties as a COMSOL-property-to-value mapping with concrete examples for both feature and group keys, feature including nested paths like "surf1/def1", and model defaulting to the current model when None.

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?

States a specific verb and resource ("Set properties on a plot group or on one of its plot features") and makes the scope distinction between group-level and feature-level targets explicit. It also names the counterpart tool (plot_properties) used for inspection, so an agent can separate this mutation tool from the read-only sibling.

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?

Gives a concrete prerequisite workflow – "use plot_properties to inspect first" – and explains the error path for invalid property names. It does not explicitly exclude other property-setting siblings (geom_set_properties, tree_set_properties), though the resource scoping makes those unlikely confusions.

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