Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

export_model_file

Save a COMSOL model as an .mph file to a specified or default exports path, then report the file size and existence for verification.

Instructions

Save the model as a COMSOL .mph file and report the written size.

Args: path: output .mph path (auto under <model_root>/exports/ when omitted). model: model name/tag (None = current model).

Returns: {"path","size","exists","format":"mph"}.

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": "export_model_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does disclose that a file is written to disk and documents the return payload (path, size, exists, format). It omits overwrite behavior, whether an existing file is replaced, and any permission or error conditions, which matter for a filesystem-mutating tool.

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 single-sentence purpose followed by compact Args and Returns blocks, with no filler. The docstring structure makes scanning easy, though the text is slightly terse on the model-name semantics.

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-optional-parameter tool with no output schema, the description supplies the return shape and both parameter defaults, which is most of what an agent needs. Remaining gaps are overwrite/error semantics rather than anything blocking invocation.

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 coverage is 0%, so the description must supply meaning, and it does: path is the output .mph location with a documented default of <model_root>/exports/, and model accepts a name/tag with None meaning the current model. Both parameters are covered with more than type information, though path format nuances are not elaborated.

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 ("Save the model as a COMSOL .mph file") plus an observable side effect ("report the written size"). It is distinguishable from export_model_java by naming the .mph format, though it does not explicitly contrast with the sibling model_save.

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?

The Args section implies usage context by explaining that path defaults under <model_root>/exports/ and that model defaults to the current model, which tells an agent how to call it with zero arguments. However, there is no explicit when-to-use guidance versus model_save or the other export_* siblings.

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