Skip to main content
Glama

comsol_save

Save the current COMSOL model to its original file or a new path, optionally backing up the old file first; returns status codes, including SAVE_LOCKED if the file may be open in COMSOL Desktop.

Instructions

保存当前模型。path 为空时存回原文件;提供 path 时另存为。backup=true 时先把旧文件复制为 .bak-时间戳(不移动原文件),保存失败不会破坏原文件。返回 ok/error_code;SAVE_LOCKED 表示文件可能被 Desktop 打开。

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

Input Schema

NameRequiredDescriptionDefault
pathNo
backupNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full behavioral burden and does well: it discloses the backup mechanism (copy to .bak-timestamp, original file not moved), the safety property that a failed save leaves the original intact, and a specific error signal (SAVE_LOCKED means the file may be held open by Desktop). The main residual gap is whether save-as overwrites an existing target file, which is left implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short clauses, each front-loading a distinct fact (mode, backup, failure safety, return codes) with no filler or repetition. Every sentence earns its place.

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 and it still names ok/error_code and explains the SAVE_LOCKED condition, which is useful context. For a two-parameter mutation tool with no annotations, coverage of side effects and failure modes is strong; only edge-case overwrite behavior is 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: path is defined by its empty/non-empty semantics and backup's effect and default behavior are described. Minor ambiguity remains around what gets backed up when path redirects the save to a new file.

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 — 保存当前模型 — and immediately distinguishes its two modes (in-place save via empty path vs. save-as via provided path). An agent can tell what this does and how it differs from comsol_open or comsol_export without inspecting 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 explicit conditional guidance: leave path empty to write back to the original file, supply path to save as a new one, and set backup=true to preserve the prior version. It does not mention alternatives or when not to use it (e.g., exporting to another format instead), so it stops short of full routing guidance.

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