Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

phys_set_selection

Assign entity numbers, a named selection, or all entities to a physics feature. Use it to define which geometry entities a physics interface feature applies to.

Instructions

Assign entities (or a named selection / all entities) to a feature.

Args: interface: interface tag/label/type (e.g. "ht"). feature: feature tag/label (e.g. "temp1"). entities: entity numbers [1,2,3], "all", or a named-selection tag. named: named selection tag (alternative to entities). all_entities: select every entity of the feature's dimension. model: model name/tag (None = current model).

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": {
      "interface": "<interface>",
      "feature": "<feature>"
    },
    "name": "phys_set_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
namedNo
featureYes
entitiesNo
interfaceYes
all_entitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it never says whether the assignment replaces or appends to an existing selection, whether it mutates the model permanently, what errors occur on an invalid feature, or what the call returns. It only reveals behavior indirectly via the parameter hints (e.g. "None = current model").

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?

One front-loaded summary sentence followed by a compact Args block; every line earns its place by documenting a parameter. Minor redundancy between entities="all" and the separate all_entities flag is not clarified, which slightly muddies structure without bloating it.

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 6-parameter mutation tool with no annotations and no output schema, the description supplies a clear purpose and complete parameter coverage. The remaining gap is mutation semantics (replace vs. append, failure behavior), which matters but is a narrower omission.

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 coverage is 0%, so the description must compensate, and it does: all six parameters are explained with concrete formats ("ht", "temp1", [1,2,3], "all", named-selection tag, None = current model). This is exactly the meaning an agent needs that the bare schema titles do not provide.

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 sentence states a specific verb (Assign) and resource (entities to a feature), and parenthetically enumerates the three selection modes, so an agent knows exactly what the tool operates on. It hints at a read counterpart (phys_get_selection) by naming the selection concept but doesn't explicitly route away from it.

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 docs: the agent learns entities can be numbers, "all", or a named-selection tag, which functions as guidance on alternative input modes. However, there is no explicit statement of when to use this tool instead of sibling setters like tree_selection_set or selection_create, nor any prerequisite conditions.

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