Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

session_connect

Connects to an already running COMSOL Multiphysics server using host and port so you can reuse an existing session for modeling and simulation tasks.

Instructions

Connect to an already running COMSOL server (comsolmphserver).

Args: port: TCP port the COMSOL server listens on (default COMSOL port is 2036). host: hostname or IP of the server (default localhost).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "port": "<port>"
    },
    "name": "session_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
portYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses one important trait (the server must already be running), but omits failure behavior when the host/port is unreachable, whether the connection replaces an existing session, whether credentials or licensing are required, and whether the connection persists across later tool calls. The description also describes port as having a default of 2036 while the schema marks it required, which risks confusion about whether it can be omitted.

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?

One framing sentence front-loads the purpose, followed by a compact per-argument list with no filler. The docstring-style 'Args:' block is slightly boilerplate but earns its place given zero schema coverage.

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 two-parameter session-lifecycle tool with no annotations and no output schema, the definition covers the inputs adequately but leaves the outcome opaque: it does not say what a successful connect yields, whether a session handle is returned, or what an agent should do on failure. Adequate but with clear gaps for a tool that anchors subsequent operations.

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 supply all parameter meaning, and it does: port is a TCP port with the conventional COMSOL value 2036, and host is a hostname or IP defaulting to localhost. This is genuinely additive over bare 'Host'/'Port' titles, with only the required-vs-default tension for port weakening it.

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: 'Connect to an already running COMSOL server (comsolmphserver)'. The qualifier 'already running' implicitly separates it from the launch-style siblings (session_start), so an agent can orient without opening the schema, 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?

'Already running' hints at the precondition and thus the alternative to use when no server exists (session_start), but this is left to inference rather than stated. There is no explicit when-not guidance, no mention of what to do if a session already exists, and no pointer to session_status for discovering running servers.

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