Skip to main content
Glama

comsol_eval

Evaluates a COMSOL expression such as temperature or stress and returns min, max, mean and size statistics for the selected dataset, with an optional unit conversion.

Instructions

对表达式求值并给出统计量(min/max/mean/size)。expression 例如 'T'、'es.normE'、'solid.mises';unit 可选,如 'degC'。dataset 为空时用默认数据集。

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

Input Schema

NameRequiredDescriptionDefault
unitNo
datasetNo
expressionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.5/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 usefully discloses the default-dataset fallback and the statistic set returned, but says nothing about whether evaluation requires an already-solved model, whether it triggers recomputation, or what happens for invalid expressions/units.

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?

Compact and front-loaded: capability first, then parameter examples, then the default-dataset rule. Every clause carries information; only the missing prerequisite/return-shape detail limits it.

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?

All three parameters are addressed and the returned statistic names are summarized, which is more than required given an output schema exists. Still missing is the operational precondition (solved model, valid dataset name) that an agent needs before invoking it.

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?

Schema description coverage is 0%, so the description must compensate, and it largely does: it explains expression with three concrete examples ('T', 'es.normE', 'solid.mises'), notes unit is optional with an example ('degC'), and defines the empty-dataset semantics. Only the accepted unit syntax for conversion versus validation is left unclear.

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?

States a specific verb and resource: evaluate an expression and return statistics (min/max/mean/size). The listed statistic set makes the output shape concrete and distinguishes it from plotting or inspection siblings, though no sibling is named explicitly.

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?

Conveys usage context through parameter guidance (unit optional, empty dataset falls back to the default dataset), which implicitly tells the agent to leave dataset blank for the common case. However, there is no explicit when-to-use versus comsol_plot or comsol_inspect, and no stated prerequisite such as the model being solved.

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