Skip to main content
Glama

comsol_plot

Creates 2D or 3D surface plots from COMSOL model expressions and exports them as PNG images, returning the saved file path.

Instructions

画结果图并导出 PNG。expression 例如 'T';unit 如 'degC';title 为图标题。自动按模型维度创建 2D/3D 表面图,file 为空时输出到 out/ 目录。返回图片路径。

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": {
      "expression": "<expression>"
    },
    "name": "comsol_plot"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
unitNo
titleNo
widthNo
heightNo
expressionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

B3.4/5.0
Behavior3/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 disclose some behavior: 2D vs 3D surface plots are chosen automatically from model dimension, empty file writes to out/, and the return value is an image path. It says nothing about whether an existing file is overwritten, whether the underlying solution must already be solved, or runtime cost.

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?

Four short clauses, front-loaded with the action and the most important parameter example; no filler. Slightly terse in that the parameter hints are packed into a single run-on clause rather than listed against their schema names.

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?

An output schema exists, so not explaining return structure in detail is acceptable (though it mentions the image path anyway). For a 6-parameter, zero-coverage schema with no annotations, the definition leaves real gaps around the two sizing parameters and the preconditions for plotting.

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

Parameters3/5

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

Schema description coverage is 0% across 6 parameters, so the description must compensate. It explains expression (example 'T'), unit (e.g. 'degC'), title, and the empty-file default, but leaves width and height entirely unexplained beyond their names and defaults.

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 and resource ("画结果图并导出 PNG" – draw a result plot and export PNG), which is clearly distinct from evaluation siblings like comsol_eval or export-only siblings like comsol_export. It does not explicitly name which sibling to prefer for non-PNG output or screenshots, so it stops short of full sibling differentiation.

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: the reader infers this is the tool to call when a rendered image of a result field is wanted. It gives no explicit when-to-use/when-not guidance and never names an alternative such as comsol_screenshot or comsol_export for other formats.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.