Skip to main content
Glama

comsol_solve

Runs a COMSOL study to obtain simulation results; set background=true to return a job_id for tracking via comsol_status while the solve continues.

Instructions

运行研究(求解)。study 为空时用第一个研究。background=true 时立即返回 job_id,求解在后台进行,之后用 comsol_status 查看 job_status/耗时/结果;只有 status 可以在求解期间调用,其他修改类工具会快速返回 MODEL_BUSY。

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

Input Schema

NameRequiredDescriptionDefault
studyNo
backgroundNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A4.3/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 full burden and does substantial work: it discloses the non-blocking job_id pattern, the delegation of progress/results to comsol_status, and the MODEL_BUSY lockout behavior for concurrent mutating calls. It does not state whether a solve overwrites existing results or what happens if the model is unsolved/invalid, leaving some mutation side effects implicit.

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?

Three tight sentences, front-loaded with the action and the default-resolution rule before the background-mode detail. Slightly dense with clause stacking, but no sentence is filler.

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-value documentation is not required, yet the description still names job_id and the downstream status fields, which is appropriate. For a two-parameter execution tool the only real omission is failure/error behavior when the study is invalid or missing.

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 compensate, and it does: 'study 为空时用第一个研究' defines the empty/default semantics of the study parameter, and the background=true clause defines both the trigger and the returned job_id for the background parameter. The remaining gap is that no study-name format or example is given.

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?

The description opens with a specific verb+resource pair ('运行研究(求解)' — run/solve a study) and immediately scopes it against the sibling that follows it (comsol_status). An agent can tell this is the execution trigger rather than study configuration (comsol_study) or monitoring (comsol_status).

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?

It gives explicit when-to-use guidance for the background mode and the monitoring follow-up ('之后用 comsol_status 查看'), plus a hard concurrency rule that other modification tools return MODEL_BUSY during a solve. It stops short of advising when to prefer blocking vs. background solving, which is the main remaining choice the agent must make unaided.

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