Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

tree_selection_set

Assign entity numbers, a named-selection tag, or all entities to a COMSOL model node's selection, or clear it when empty.

Instructions

Assign entities to a node's selection.

Args: path: feature node path (e.g. "physics/ht/temp1"). entities: list of entity numbers, a named-selection tag, or "all". Pass null/empty to clear the selection.

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": {
      "path": "<path>"
    },
    "name": "tree_selection_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
modelNo
entitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/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 behavioral burden. It usefully discloses that null/empty clears the selection and that 'all' is a valid value, but it says nothing about whether the operation overwrites prior selection, whether entities must already exist, or what happens on an invalid path.

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 core action is stated in the first sentence and the rest is a tightly scoped Args list with no filler. The docstring-style formatting is slightly mechanical but does not cost the reader anything.

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

Completeness3/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 no annotations, so the description is the only source of behavioral information, and it omits the 'model' parameter and any statement of mutation effects. What is present is accurate and useful, but a state-changing tool with three parameters warrants more coverage.

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 description must compensate, and it does so for two of three parameters: 'path' is given a concrete example format and 'entities' is explained as a list of numbers, a named-selection tag, or 'all', which is essential given the loosely typed anyOf schema. The 'model' parameter is never mentioned, leaving a real gap.

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 description opens with a specific verb+resource: 'Assign entities to a node's selection,' which pairs clearly against the sibling tree_selection_get. It does not explicitly state the read/write contrast with that sibling, relying on the reader to infer it from the verb, so it stops short of full sibling differentiation.

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 through the parameter semantics (assign a list, a tag, or 'all'; pass null/empty to clear) rather than stated as when-to-use guidance. There is no explicit alternative named and no exclusion conditions, so an agent must infer that reading selections is a different tool.

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