Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

geom_primitive

Creates COMSOL geometry primitives such as blocks, cylinders, spheres, and polygons from size, position, and orientation inputs to simplify model setup and feature creation.

Instructions

Create a primitive geometry object with ergonomic aliases.

Args: kind: Block | Cylinder | Sphere | Cone | Torus | Pyramid | Hexahedron | Tetrahedron | Ellipsoid | Helix | Point | LineSegment | Polygon | Rectangle | Square | Circle | Ellipse | Interval (aliases: box, ball, rect, disk, line...). size: size expressions; Block [l,w,h], Rectangle [w,h], Square/Interval scalar. Units follow the geometry length unit, e.g. ["0.1","0.05","0.02"]. pos: position [x,y] or [x,y,z] (base point; see base property). r: radius (Cylinder/Sphere/Cone/Circle/Torus major radius). h: height (Cylinder/Cone). axis: axis direction vector (3 values) or "x"/"y"/"z". rot: rotation angle in degrees (about pos / z-axis). rmin: minor radius (Torus/Helix). rmaj: major radius (Torus/Helix; overrides r for those kinds). semiaxes: Ellipsoid semi-axes [a,b,c] (overrides r). turns: Helix number of turns. points: Hexahedron 3x8 / Tetrahedron 3x4 coordinate matrix (rows x,y,z) or LineSegment endpoints [[x1,y1(,z1)],[x2,y2(,z2)]]. connames: LineSegment coordinate overrides {"coord1": [...], "coord2": [...]}. properties: extra/override COMSOL properties, e.g. {"base": "center"}. tag: feature tag (None = automatic, e.g. blk1). 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": {
      "kind": "<kind>"
    },
    "name": "geom_primitive"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNo
rNo
posNo
rotNo
tagNo
axisNo
kindYes
rmajNo
rminNo
sizeNo
buildNo
labelNo
modelNo
turnsNo
pointsNo
connamesNo
geometryNogeom1
semiaxesNo
componentNo
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose several behavioral traits: build defaults to true (so the feature is built into the sequence immediately), tag is auto-generated when None, and model/component default to the current/auto values. It does not state permissions, failure modes, whether an existing tag is overwritten, or what the call returns, which leaves meaningful gaps for a mutating tool.

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 purpose statement is front-loaded and the long Args block is justified by a 20-parameter surface. It is a raw docstring dump rather than prose, and a few entries (e.g. the trailing '...' in the alias list) are slightly loose, but there is little wasted text.

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 20-parameter mutation tool with no annotations and no output schema, the parameter coverage is strong but the definition still omits return values, error behavior, and any selection guidance relative to siblings. It is adequate to call the tool correctly, but not complete for deciding when to call it.

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 entirely, and it does: each of the 20 parameters is explained with kind-specific applicability (r for Cylinder/Sphere/Cone/Circle, rmin for Torus/Helix, turns for Helix), units ('Units follow the geometry length unit'), accepted shapes (size as [l,w,h] vs scalar), and override precedence (rmaj overrides r, semiaxes overrides r). This adds substantial meaning the bare titles in the schema cannot convey.

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 opening sentence states a specific verb and resource: 'Create a primitive geometry object with ergonomic aliases', and the kind enumeration makes the scope concrete (Block, Cylinder, Sphere, etc.). It does not, however, name or contrast itself with creation-oriented siblings such as geom_create or geom_add, so an agent must infer the boundary.

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 explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The reader can infer that this is the tool for parametric primitives, but nothing tells them whether to reach for geom_create, geom_add, or geom_workplane instead, nor what prerequisites (existing model, geometry sequence) must hold.

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