Skip to main content
Glama

comsol_start

Connects to or starts a COMSOL backend on a given port, using all CPU cores by default, to enable live multiphysics modeling and solving.

Instructions

连接或启动 COMSOL 后端。默认端口 2036:如果该端口已有 server 就连接它(例如 Desktop 已连上的 server),否则启动一个新的 server。cores 为 0 表示使用全部核心。首次启动约 10-20 秒。

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

Input Schema

NameRequiredDescriptionDefault
portNo
coresNo
versionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the whole burden and does disclose the important behavior: it is a connect-or-create operation, it can attach to a server already used by Desktop, and first launch blocks for roughly 10-20 seconds. It omits failure behavior (port occupied by a non-COMSOL process) and whether the core count is ignored when an existing server is reused.

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 action and its branching rule, and the latency note is placed at the end where it is least disruptive. The only mild redundancy is restating the 2036 default that the schema already declares.

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

Completeness4/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 explained, and the operational facts an agent needs (connect-or-start semantics, cores=0 meaning, startup delay) are present. The unexplained version parameter and the absence of any error/retry guidance are the remaining gaps for a lifecycle tool.

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 coverage is 0%, so the description must compensate, and it does for two of three parameters: port is given a default plus its connect-vs-spawn significance, and cores=0 is explained as all cores. The version parameter is never mentioned in the description or the schema, leaving it fully undocumented.

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 pair and resource: connect to or start the COMSOL backend, with the exact decision rule (existing server on port 2036 is reused, otherwise a new one is launched). It is clearly distinguishable from lifecycle siblings like comsol_stop or comsol_status by implication, though no sibling is named explicitly.

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?

The description implies when to call it (you need a backend running, and reuse over relaunch is preferred), and the port-reuse rule is genuine usage guidance. It never states whether this must be called before other tools, whether calling it twice is safe, or how it differs from comsol_status/comsol_diagnose.

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