Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

geom_sweep

Sweep faces, edges, or points along a spine curve to create swept geometry in COMSOL. Specify entities, entity dimension, and spine to build solid features.

Instructions

Sweep faces/edges/points along a spine curve.

Args: entities: entities to sweep as {"object": [entity numbers]}, e.g. {"blk1": [3]}; or a flat list with a single object in the geometry. entity_dim: dimension of the entities to sweep (default 2 = faces). spine: spine edges as {"object": [edge numbers]}, e.g. {"ls1": [1]}. properties: extra COMSOL properties (e.g. {"keep": "on"}). tag: feature tag (None = automatic, e.g. swe1). 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "geom_sweep"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
buildNo
labelNo
modelNo
spineNo
entitiesNo
geometryNogeom1
componentNo
entity_dimNo
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, the description carries the full burden; it does disclose that the tool mutates the geometry sequence by creating a named feature ('None = automatic, e.g. swe1') and that 'build' triggers a build by default, which are real behavioral facts. It says nothing about failure modes, required model/geometry state, or whether an existing feature with the same tag is overwritten.

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?

A single front-loaded sentence followed by a compact Args block; each line carries distinct information and nothing is repeated from the schema titles. The docstring formatting is slightly verbose relative to a prose description but is efficient and scannable.

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 10-parameter mutation tool with no annotations and no output schema, the description covers inputs well but leaves the agent without guidance on return value (does it yield the created feature tag?), build side effects, or error conditions. Adequate to invoke, incomplete for confident use.

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, and it largely does: it documents all 10 parameters with types, defaults, and concrete input formats ({"blk1": [3]} for entities, {"ls1": [1]} for spine, 2 = faces for entity_dim). Only 'properties' stays vague ('extra COMSOL properties') with a single example rather than a pointer to valid keys.

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 line gives a specific verb and resource ('Sweep faces/edges/points along a spine curve'), which clearly distinguishes it from the sibling geom_extrude, geom_revolve, or geom_loft operations. It stops short of naming an explicit alternative, but the operation 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 Guidelines3/5

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

Usage is implied by the args (sweeping entities along a spine edge is the classic swept-mesh precursor), but the description never says when to choose this over geom_extrude/geom_loft or what prerequisites exist (e.g., the spine must belong to the same geometry). No 'do not use when' guidance is offered.

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