Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

report_generate

Write COMSOL report content to an HTML or DOCX file and verify the saved file and embedded assets on disk.

Instructions

Write the report to an HTML or DOCX file and verify it on disk.

A report with no content sections produces NO file (COMSOL returns without writing); add at least one Section with report_add_section / report_add_content first. HTML reports also create a sibling <stem>_files/ directory with the embedded PNGs.

Args: report: report tag (see report_list). path: output file path; extension chooses the format unless format is given. Defaults to <artifact_root>/<model>/<timestamp>_reports/<tag>.html. format: html | docx (Report nodes; Presentation uses pptx). model: model name/tag (None = current model).

Returns: {"path","size","format","exists","assets_dir","assets"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "report_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
modelNo
formatNo
reportNorpt1

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?

With no annotations, the description carries the full burden and does substantial work: it discloses the no-op edge case (empty report writes nothing), the side effect of creating a sibling '<stem>_files/' directory with embedded PNGs, and the exact return keys. It does not state overwrite behavior for an existing path, which is a meaningful omission for a file-writing tool.

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?

The critical caveat about empty reports is front-loaded before the Args block, and the Args/Returns structure makes each line scannable. Every sentence adds information an agent needs to call it correctly.

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 four-parameter mutation tool with no output schema and no annotations, the description supplies the preconditions, side effects, format options, defaults, and return shape. Nothing material is left for the agent to guess.

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%, yet all four parameters are explained: report is a report tag (cross-referenced to report_list), path's extension selects the format unless format is given plus the exact default path pattern, format enumerates html|docx and notes pptx for Presentation nodes, and model notes None means the current model.

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?

States a specific verb and resource ('Write the report to an HTML or DOCX file and verify it on disk'), and the file-writing/verification framing distinguishes it clearly from the report_add_section and report_add_content siblings, which build content rather than emit files.

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?

Gives an explicit precondition and routes the agent to the right alternatives: 'A report with no content sections produces NO file...; add at least one Section with report_add_section / report_add_content first.' It does not spell out when to prefer HTML vs DOCX (deferred to the format param), so a small gap remains.

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