Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

geom_boolean

Combine geometric objects using Boolean operations such as union, intersection, difference, compose, or partition, and optionally build the resulting COMSOL geometry feature.

Instructions

Combine geometric objects with a Boolean operation.

Args: operation: Union | Intersection | Difference | Compose | Partition (case-insensitive; "difference" removes subtract from input). input: object names to combine, e.g. ["blk1","cyl1"] or ["blk1"]. subtract: objects to subtract (Difference only), e.g. ["cyl1"]. formula: set formula for Compose, e.g. "blk1+cyl1-blk2". keep: keep input objects (Union/Intersection/Compose). intbnd: keep interior boundaries ("on"/"off", bool accepted). properties: extra properties, e.g. {"keepadd": "on"}. tag: feature tag (None = automatic, e.g. dif1). label: display label. build: build after creation (default true). geometry: geometry sequence tag (default "geom1"). component: component tag (None = auto). 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": {
      "operation": "<operation>"
    },
    "name": "geom_boolean"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
keepNo
buildNo
inputNo
labelNo
modelNo
intbndNo
formulaNo
geometryNogeom1
subtractNo
componentNo
operationYes
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 burden. It does disclose useful defaults (build=true, geometry='geom1', component auto, model=current) and automatic tagging, but it never states whether input objects are consumed when keep is false, nor any side effects on model state or error behavior.

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 purpose is front-loaded and the per-argument list is compact with no filler. The raw Args-docstring formatting is functional rather than polished, but nothing is wasted.

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 13-parameter mutation-style geometry tool with no annotations and no output schema, the definition covers inputs well but omits what the call returns (a feature tag?), whether existing objects are modified or replaced, and failure modes. The input side is complete enough to invoke correctly; the outcome side is not.

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 for all 13 params, and it largely does: each argument is documented with examples, applicable operations, and defaults. Remaining gaps are minor, e.g. the valid keys for 'properties' are only hinted at by one example, and intbnd is described as 'on'/'off' strings while the schema types it as boolean.

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?

States a specific verb and resource: combine geometric objects via a Boolean operation, with the operation enum spelled out. It does not differentiate itself from siblings like geom_add or anim_combine, but the purpose itself is unambiguous.

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?

There is no when-to-use guidance, no prerequisites, and no named alternative for cases like adding rather than Booleans. The only usage-adjacent detail is that 'difference' removes subtract from input and formula applies to Compose, which is operation semantics rather than routing 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