Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

visual_view_image

Display an exported COMSOL image inline as MCP image content by loading a PNG, JPEG, BMP, GIF, or WebP file from a plot or export path, with optional downscaling to keep payloads small.

Instructions

Display an exported COMSOL image inline (PNG/JPEG/BMP/GIF/WebP).

Use the path returned by plot_export_image / plot_quick / export tools. Returns the image itself as MCP image content plus a short text summary.

Args: path: absolute path to the image file. max_width: downscale to this pixel width to keep payloads small (0 = original).

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": {
      "path": "<path>"
    },
    "name": "visual_view_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_widthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations exist, so the description must carry the behavior burden, and it does disclose the return contract: the image itself as MCP image content plus a short text summary. It also explains the payload-size tradeoff of downscaling. It does not state what happens on an invalid/missing path or whether the file is modified, which are the remaining gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and format list, then the workflow link, return behavior, and a compact Args block. No sentence is filler and the structure makes scanning trivial.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter display tool with no output schema, the description covers input meaning, the upstream producer of the input, and the shape of what is returned. An agent has everything it needs to call it correctly on the first attempt.

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 fully, and it does: path is defined as an absolute path to the image file, and max_width is defined as a downscale target with the special value 0 meaning original size. Both parameters gain meaning beyond the bare titles in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource: display an exported COMSOL image inline, and enumerates the supported formats (PNG/JPEG/BMP/GIF/WebP). An agent can immediately tell this is the rendering step for an already-exported file, distinct from export tools.

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

Usage Guidelines4/5

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

Explicitly routes the agent: use the path returned by plot_export_image / plot_quick / export tools, which tells it this is the downstream step after an export. It stops short of naming the alternative for animations (visual_view_animation) or saying when not to use it.

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