Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

anim_preview

Extract a preview image from an animation or frame directory and optionally build a contact sheet grid to visually QA frames.

Instructions

Extract a preview image of an animation (first frame and/or contact sheet).

Args: source: animation path (.gif/.mp4) or frames directory. output: output PNG path (auto-generated when omitted). contact_sheet: true = also build a grid montage of up to max_frames frames (useful to visually QA the animation). columns: contact sheet column count (default 4). max_frames: maximum frames in the contact sheet (default 24).

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": {
      "source": "<source>"
    },
    "name": "anim_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNo
sourceYes
columnsNo
max_framesNo
contact_sheetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 disclosure burden. It does add useful behavior — the output path is auto-generated when omitted, and contact_sheet builds a grid montage capped at max_frames — but it never says whether existing files are overwritten, whether parent directories are created, or what the tool returns.

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?

The purpose statement is front-loaded in one sentence, followed by a tight parameter list with no filler. The indentation-based docstring formatting is slightly awkward but remains scannable and every line carries information.

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 5-parameter file-producing tool with no annotations and no output schema, the description covers inputs well but leaves the result unspecified — whether it returns the written path, a status message, or image data is unknown, and overwrite/error behavior is unstated.

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 Args block is doing real work: it explains source accepts a .gif/.mp4 path or a frames directory, output is auto-generated when omitted, and describes the meaning of contact_sheet, columns, and max_frames beyond their bare names. Minor gaps remain, e.g. which frames are sampled from a frames directory or how columns behaves when contact_sheet is false.

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?

The first sentence gives a specific verb and resource — 'Extract a preview image of an animation (first frame and/or contact sheet)' — and the contact_sheet note frames the intent as visual QA. It does not explicitly distinguish itself from nearby tools like anim_extract_frames or anim_export_frames, so an agent must infer that this one produces a single preview/contact sheet rather than a full frame dump.

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?

'Useful to visually QA the animation' hints at when to enable contact_sheet, giving implied usage context. However, there is no explicit when-to-use/when-not-to-use guidance and no naming of alternatives such as anim_extract_frames or anim_export_frames, which likely overlap in purpose.

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