Skip to main content
Glama

comsol_open

Opens a .mph COMSOL model or creates a new empty model, then makes it the current object for subsequent geometry, mesh, and solve operations.

Instructions

打开一个 .mph 模型,或新建空模型(new=true)。path 支持中文和相对路径(相对 comsol-bridge 目录)。打开后该模型成为当前操作对象。对于大模型(>50MB)加载可能需要几十秒。

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_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNo
nameNo
pathNo

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 load and does add real value: it discloses the side effect that the opened model becomes the current operation target, and warns that models over 50MB may take tens of seconds to load. It does not say what happens when the path is invalid, whether an already-open model is discarded or kept, or anything about permissions, which are the main behavioral risks for an open/mutate-state 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?

Four short sentences, front-loaded with the primary action and the mode switch, with no filler. The path-resolution note and the latency warning each earn their place; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. For a three-parameter load tool, the description covers the mode choice, path semantics, the resulting current-model state, and the performance caveat, which is enough for an agent to call it correctly; only the name parameter's role is left implicit.

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 partially does: new is tied to empty-model creation and path is clarified as accepting Chinese characters and relative paths resolved against the comsol-bridge directory. The name parameter is never mentioned, leaving one of three parameters undocumented in both schema and description.

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: opening a .mph model or creating an empty model via new=true. The post-condition (the model becomes the current operation target) helps separate it from switching tools like comsol_use, though the description never names that sibling explicitly, leaving a small ambiguity for an agent holding an already-loaded model.

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?

Gives a clear rule for choosing between the two modes (existing path vs. new=true), which is genuine when-to-use guidance. It offers no exclusions or alternatives, however: nothing tells the agent whether to call this versus comsol_use or comsol_start when a model is already loaded.

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