Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

media_frames_to_gif

Compile PNG/JPG image frames into an animated GIF with adjustable frame rate, looping, title overlay, resizing, and palette optimization.

Instructions

Compose PNG/JPG image frames into an animated GIF (Pillow; no COMSOL needed).

Args: frames: list of image paths, or a one-element list containing a frames directory, e.g. ["C:/out/frames"] (files are sorted naturally). output: output .gif path (auto-generated when omitted). fps: frames per second (default 10; converted to GIF frame duration). loop: 0 = loop forever (default), n = repeat n times. optimize: optimise the GIF palette/file size. title: optional title text drawn on every frame. title_position: "top" (default) | "bottom" | "overlay-top" | "overlay-bottom". title_font_size: title font size px (default 18). max_width: downscale frames wider than this. max_frames: keep at most this many frames (evenly spaced). hold_last_s: extra seconds to show the last frame.

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": {
      "frames": "<frames>"
    },
    "name": "media_frames_to_gif"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
loopNo
titleNo
framesYes
outputNo
optimizeNo
max_widthNo
max_framesNo
hold_last_sNo
title_positionNotop
title_font_sizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses natural sorting of input files, auto-generation of the output path when omitted, fps→frame-duration conversion, loop counting semantics, downscaling via max_width, even-spaced frame sampling, and last-frame hold. It omits failure behavior, GIF-specific constraints (256-color palette), and the return value.

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 one-line summary followed by a compact per-parameter block where each line earns its place. Minor friction: title_font_size documents a default of 18 while the schema default is null, which could momentarily confuse an agent.

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 an 11-parameter tool with no annotations and no output schema, the description is nearly complete on inputs. The remaining gap is the return value (presumably the written .gif path), which the agent must guess since no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate and it does: every one of the 11 parameters is explained in the Args block, including the non-obvious overload where frames may be a single-element list containing a directory. It also supplies enum values for title_position (top|bottom|overlay-top|overlay-bottom) that the schema lacks, plus defaults for optional fields.

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: compose PNG/JPG frames into an animated GIF, and notes the Pillow implementation with no COMSOL dependency. It implicitly separates itself from media_frames_to_mp4 by naming the GIF output format, though it never names a sibling explicitly.

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?

Usage is only implied: an agent infers this is the tool for GIF output versus MP4, but the description never states when to prefer it, prerequisites, or exclusions. The 'no COMSOL needed' note helps context but is not an alternative-selection rule.

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