Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

selection_create

Create a named selection on a COMSOL component to define reusable domains, boundaries, edges, or points for physics features and selection-based operations.

Instructions

Create a named selection on a component (usable by any physics feature).

Args: name: selection tag. entity_dim: 3 = domains, 2 = boundaries/faces, 1 = edges, 0 = points. geometry: geometry sequence tag to attach to. kind: Explicit | Box | Ball | Cylinder | Disk | Adjacent | Union | Intersection | Difference | Complement | LogicalExpression. entities: explicit entity numbers (for Explicit selections). properties: extra properties, e.g. {"xmin": "-1", "xmax": "1", "zmin": "0"} for Box selections, or {"condition": "inside"}.

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": {
      "name": "<name>",
      "entity_dim": "<entity_dim>"
    },
    "name": "selection_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoExplicit
nameYes
modelNo
entitiesNo
geometryNogeom1
entity_dimYes
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden, yet it never states that this is a mutating operation, whether an existing selection with the same name is overwritten or errors out, whether permissions or an active model are required, or what is returned (a tag?). Listing the kind vocabulary is helpful, but the state-change and failure semantics are absent.

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 one-line summary is front-loaded before the Args block, and each parameter line is a single tight clause. The docstring-style layout is slightly raw but there is no filler or repetition.

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?

For a 7-parameter mutation tool with no annotations and no output schema, the description covers most of the input surface but omits the 'model' parameter, never explains return value, and says nothing about how the different kind values drive the 'properties' payload shape. It is usable but leaves real ambiguity for anything other than an Explicit selection.

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 explain six of seven parameters: name, entity_dim with its 3/2/1/0 dimensional mapping, geometry, kind with the full enumerator list, entities scoped to Explicit, and properties with a concrete Box example. However 'model' is never mentioned and the kind enumerators (Box, Ball, Union, Complement...) are named without explaining what each requires in 'properties'.

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 states a specific verb+resource: 'Create a named selection on a component', and adds the scope note that the result is usable by any physics feature. That distinguishes it from selection_get/list/remove siblings, though it never names them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'usable by any physics feature' hints at downstream consumption but gives no when-to-use condition, no exclusions, and no pointer to closer alternatives such as geom_selection_actions or phys_set_selection. The agent must infer the workflow entirely from sibling names.

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