Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

anim_extract_frames

Extract frames from GIF or video files into numbered PNG images for frame-by-frame inspection, analysis, or comparison within COMSOL animation workflows.

Instructions

Extract frames from a GIF/video into numbered PNG files.

Args: source: animation path (.gif, .mp4, .avi, .webm). directory: output directory (default: artifact workspace). prefix: file prefix, e.g. "frame" -> frame0001.png. max_frames: maximum number of frames to extract.

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

Input Schema

NameRequiredDescriptionDefault
prefixNoframe
sourceYes
directoryNo
max_framesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden; it does disclose the output form (numbered PNGs) and the default destination ('artifact workspace'), which is real behavioral value. It omits whether existing files are overwritten, whether the output directory must exist, and what the call returns, which matters for a filesystem-writing operation.

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 is front-loaded in one sentence and the parameter notes are compact and scannable. The Args list partly restates schema titles, but each entry adds information the schema lacks, so little is wasted.

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 four-parameter file-producing tool with no annotations and no output schema, the description covers inputs well but leaves the result underspecified: no mention of what is returned (paths, count), overwrite behavior, or failure modes for unsupported codecs. It is adequate to call the tool but not to predict its effects.

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 the only source of parameter meaning, and it delivers: accepted extensions for source, the default workspace for directory, a concrete prefix-to-filename example, and the meaning of max_frames. The only gap is that max_frames' default behavior (all frames when null) is implied rather than stated.

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 frames from a GIF/video') plus the output artifact ('numbered PNG files'), which is far more informative than the name alone. It does not, however, distinguish this from the sibling anim_export_frames, so an agent cannot tell the two apart from the description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus anim_export_frames, anim_preview, or media_frames_to_gif, and no prerequisites or exclusions are given. The nearest thing to guidance is the accepted source formats, which is input validation rather than usage context.

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