Skip to main content
Glama

comsol_desktop

Launch COMSOL Desktop and connect it to the running backend server so you can view and edit the same model in the graphical interface. Optionally open a specified .mph file after startup.

Instructions

启动 COMSOL Desktop 并连接当前后端 server(client-server 模式),让用户能在图形界面里实时看到同一模型。open_file 可选,启动后打开该 .mph。注意:会弹出 Connect to Server 窗口,需要用户点一下 Connect。

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

Input Schema

NameRequiredDescriptionDefault
open_fileNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.9/5.0
Behavior4/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 does so on the most important point: launching triggers a 'Connect to Server' dialog that requires a manual user click, which is a blocking, human-in-the-loop dependency an agent must plan around. It also discloses the client-server mode and the optional post-launch file open. It does not say what happens if the request is never confirmed or if a Desktop instance already exists.

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 definition is compact and front-loads the primary action (launch and connect) before the optional parameter and the caveat. The manual-click warning is placed last but flagged with '注意', so it is not buried. No filler sentences.

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 no explanation, and the description covers the mode, the optional parameter, and the interactive confirmation barrier. For a one-parameter launch tool, the remaining unknowns are environment-specific rather than definition gaps.

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?

The single parameter has a bare schema entry with no description, so the description must supply its meaning — and it does, explaining that open_file is optional and that the .mph is opened after launch rather than before. That ordering detail is exactly the kind of semantics the schema lacks. It could still specify expected path format or behavior on an invalid path.

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 states a specific verb and resource: it launches the COMSOL Desktop GUI and attaches it to the existing backend server in client-server mode, exposing the same live model. That scope implicitly separates it from server-starting or headless siblings, though no sibling is named explicitly, which keeps it just 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 Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this is the tool to call when the user wants to watch work in the GUI. There is no explicit when-not guidance, such as what to do instead if a Desktop session is already open or if no backend exists yet, so the agent must guess at the prerequisites.

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