Skip to main content
Glama

comsol_diagnose

List COMSOL issues such as undefined variables, empty selections, and geometry or mesh faults, then check for missing geometry, physics, materials, mesh, studies, or solutions after a failed solve.

Instructions

模型体检:列出 COMSOL 报告的问题(未定义变量、空选择、几何/网格问题),并检查是否缺几何、物理场、材料、网格、研究或解。求解失败后先跑这个。

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_diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the substantive behavior (which diagnostics are performed and that it verifies model completeness), which is genuinely useful. However, it never states whether the check is read-only or can mutate the model, nor whether it requires an open model or running COMSOL session, leaving the safety profile and prerequisites unstated.

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?

Two short sentences with zero filler: the first states what is checked, the second states the triggering situation. The most actionable information (run after solve failure) is placed last as a clear call to action without any wasted wording.

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 zero-parameter diagnostic with an output schema present, the description covers the scope of the check well enough that an agent knows what it will learn from the result. The one missing element is a precondition (an open model / active COMSOL session), which matters for a tool that inspects live model state.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a no-parameter tool applies. No parameter-related gaps exist.

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 concrete operation (a model health check) and enumerates the specific items examined: COMSOL-reported problems such as undefined variables, empty selections, geometry/mesh issues, plus presence checks for geometry, physics, materials, mesh, study and solution. That is far more specific than a tautology. It stops short of naming a sibling it replaces (e.g. comsol_inspect or comsol_status), so differentiation is implied rather than stated.

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?

It gives an explicit trigger: 'run this first after a solve failure' (求解失败后先跑这个). That is a clear usage context that routes the agent ahead of re-solving. It does not state when not to use it, nor does it name alternative diagnostic tools for non-failure situations.

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