Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

study_solve_wait

Waits for a background COMSOL solve job by job ID, returning status, progress, and final results or artifacts. Set a timeout and poll again for longer solves.

Instructions

Wait for a background solve job (see study_solve_async) and return it.

Args: job_id: job id returned by study_solve_async. timeout_s: maximum seconds to wait (default 120; use several polls for longer solves).

Returns the job status/progress plus the solve result and artifacts when finished. Does not consume the COMSOL worker thread.

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": {
      "job_id": "<job_id>"
    },
    "name": "study_solve_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/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 burden and mostly succeeds: it discloses that the call does not consume the COMSOL worker thread (important for a blocking-style wait) and that results/artifacts only arrive once the job finishes. It leaves the job lifecycle ambiguous — 'return it' does not say whether the job record is consumed or can be waited on again after a timeout.

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?

Front-loaded with the purpose, then a compact Args block and a Returns sentence — no filler. Minor redundancy in restating the 120-second default that the schema already declares, but it costs little and reinforces the timeout guidance.

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?

For a two-parameter async-collection tool with no output schema and no annotations, the description supplies purpose, both parameters, return contents, and a threading caveat. The remaining gap is timeout outcome semantics — whether a timed-out call errors or returns partial progress — which matters for driving the poll loop correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 document both parameters and it does: job_id is sourced to study_solve_async's return, and timeout_s is given as 'maximum seconds to wait' with the polling workaround for long solves. That is genuinely more than the bare schema titles and default provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Wait for a background solve job ... and return it') and explicitly ties it to study_solve_async, which is exactly the sibling an agent would confuse it with. The agent knows this is the blocking/collection half of an async pattern without opening the schema.

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?

Gives clear context of use: it follows study_solve_async and takes the job_id that tool returned, and it advises 'use several polls for longer solves' when the solve exceeds the timeout. What it does not do is state the when-not case, e.g. what to do if the job was never started or has already been collected.

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