Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

media_frames_to_mp4

Convert PNG or JPG image frames into an H.264 MP4 video for COMSOL animations, with options for frame rate, quality, titles, scaling, and frame holding.

Instructions

Compose PNG/JPG image frames into an H.264 MP4 (imageio + imageio-ffmpeg).

Requires imageio and imageio-ffmpeg (check media_tools_status). Frames are padded to even dimensions automatically (H.264 requirement).

Args: frames: list of image paths or a one-element frames directory list. output: output .mp4 path (auto-generated when omitted). fps: frames per second (default 10). quality: imageio-ffmpeg quality 0..10 (8 = good, default). title: optional title text drawn on every frame. title_position: "top" (default) | "bottom" | "overlay-top" | "overlay-bottom". 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_mp4"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
titleNo
framesYes
outputNo
qualityNo
max_widthNo
max_framesNo
hold_last_sNo
title_positionNotop

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 present, the description carries the full burden and does a decent job: it discloses the hard runtime dependencies (imageio, imageio-ffmpeg), the automatic even-dimension padding required by H.264, and that max_frames subsamples evenly rather than truncating. It omits overwrite semantics, error behavior, and whether the produced file path is returned, which keeps it from a 5.

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?

Well front-loaded: capability and dependency caveat come first, then a scannable per-argument list. A few lines restate schema-supplied defaults ("default 10", "8 = good, default"), which is mildly redundant but defensible given the total absence of schema descriptions.

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 nine-parameter media-encoding tool with no annotations and no output schema, the definition covers the essentials: dependencies, codec constraint handling, all parameter meanings, and one non-obvious interaction (max_frames sampling evenly). The remaining gap is what the tool returns and whether an existing output file is overwritten.

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 description coverage is 0%, so the description must compensate, and it does: all nine parameters are explained with meaning the schema does not carry. Critically, title_position's four valid values ("top", "bottom", "overlay-top", "overlay-bottom") are given even though the schema defines no enum, and quality's 0..10 scale with 8 as the reference point is spelled out.

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?

Opens with a specific verb+resource+codec: "Compose PNG/JPG image frames into an H.264 MP4." That phrasing distinguishes it in substance from the sibling media_frames_to_gif, but it never names an alternative explicitly, which keeps it below a 5.

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 definition gives one genuinely useful piece of routing advice: check media_tools_status for the imageio dependencies. Beyond that it offers no when-to-use guidance, no mention of when to prefer the GIF sibling, and no note on frame-list vs directory input tradeoffs beyond a brief parenthetical.

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