Skip to main content
Glama

comsol_physics

Manage COMSOL physics interfaces and features by listing, adding, updating, or removing them and assigning selections or named selections for model setup.

Instructions

通用物理场工具。action=list 列出接口和特征;add_interface 新建接口(physics_type 如 HeatTransfer/SolidMechanics/LaminarFlow/Electrostatics);add_feature 给接口加特征(feature_type 如 TemperatureBoundary/HeatFluxBoundary/InletBoundary);update_feature 设置选择或属性;remove_feature/remove_interface 删除。selection 传实体编号列表,或 named_selection 传命名选择的 tag。dimension 为特征维度,0 表示按几何自动推断(3D 边界=2,2D 边界=1)。

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": "comsol_physics"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
actionNolist
physicsNo
componentNo
dimensionNo
selectionNo
propertiesNo
feature_typeNo
physics_typeNo
named_selectionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.6/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 behavioral burden, and it does add real context: the dimension auto-inference rule (0 = infer, 3D boundary=2, 2D boundary=1) and the two ways to specify a selection. However, for the destructive surface (remove_feature/remove_interface) it says nothing about irreversibility, prerequisites such as an open model/desktop, or what update_feature overwrites in the properties map.

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 dense paragraph with semicolon-delimited action clauses and a trailing note on selection/dimension; no filler and no repetition of schema defaults. The lead phrase '通用物理场工具' is generic, but the actionable content follows immediately.

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?

This is a 10-parameter, action-multiplexed mutation tool with no annotations; an output schema exists so return values need not be explained. Missing pieces are the prerequisites for the mutating actions (open model? active component?), the meaning of tag/component/physics, and the shape of the properties map, which an agent would need before calling add_feature or update_feature confidently.

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% across 10 parameters, so the description must compensate and it only partly does: action, physics_type, feature_type, selection, named_selection, and dimension are given meaning with examples, while tag, physics, component, and properties remain entirely undefined (properties is only obliquely 'set selection or properties'). Useful but leaves roughly a third of the parameters opaque.

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 description names a concrete resource (physics interfaces and their features) and enumerates the operations it performs: list, add_interface, add_feature, update_feature, remove_feature, remove_interface, complete with example physics_type/feature_type values. An agent can tell this is the physics-interface editor rather than geometry, mesh, or material handling. It does not explicitly contrast itself with siblings such as comsol_selection, so it stops short of a 5.

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

Usage Guidelines4/5

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

Each action is paired with its purpose inline (list enumerates interfaces/features; add_interface creates one; add_feature attaches to an interface; update_feature sets selection or properties; remove_* deletes), which effectively tells the agent which action to pick. There is no explicit when-not guidance or pointer to the sibling tool that produces entity numbers for the selection argument.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.