Skip to main content
Glama

comsol_screenshot

Captures the COMSOL Desktop window as a PNG for AI inspection, saving to a specified file or the out/ directory when no path is provided.

Instructions

截取 COMSOL Desktop 窗口为 PNG,让 AI 看到用户当前的界面和模型。file 为空时输出到 out/ 目录。窗口未找到时返回错误。

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": "comsol_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.6/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden. It usefully discloses three behavioral facts: the output format is PNG, the default destination is out/ when file is empty, and an error is returned if the window is not found. It does not cover permissions, whether capture brings the window to focus, whether the image is scaled, or whether it captures multiple monitors.

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?

Three short sentences are front-loaded with the main action, followed by the default-destination rule and the failure condition. Nothing is redundant, and every sentence adds usable information.

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?

The tool is simple, with one optional parameter and an output schema that carries the return shape, so the description does not need to explain return values. The description covers the purpose, the default path, and the error case. The remaining gap is that the meaning of the file parameter is not fully specified.

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% for the single file parameter, so the description must compensate. It does explain the empty-string default behavior, which goes beyond the schema. However, it is ambiguous whether file means a full file path, a filename, or a directory, and whether the extension should be included.

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 description names a specific action and resource: it captures the COMSOL Desktop window as a PNG so the AI can see the user's current UI and model. This is precise. However, it does not distinguish this tool from sibling tools, such as comsol_inspect or comsol_plot, and does not clarify when a visual capture is preferable.

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 stated purpose of letting the AI see the current interface implies when to use the tool. However, there is no explicit guidance on when to take a screenshot instead of using other tools, and no prerequisites are mentioned, such as whether the window must be in the foreground.

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