Skip to main content
Glama

comsol_export

Exports COMSOL expression values sampled on a mesh to a CSV file with indices and values for Python or Excel analysis.

Instructions

把表达式在网格上的取值导出为 CSV(含索引与数值)。expression 如 'T',file 为输出路径(相对 comsol-bridge 目录)。适合后续用 Python/Excel 分析。

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>",
      "file": "<file>"
    },
    "name": "comsol_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
unitNo
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 at all, the description must carry the full burden of behavioral disclosure. It does disclose useful behavior: the output is a CSV containing indices and values, and the file path is resolved relative to the comsol-bridge directory. It does not say whether existing files are overwritten, whether the model must be solved first, or what errors occur on a bad expression.

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?

Three short sentences, with the core action and output format front-loaded, followed by parameter hints and a usage note. Every sentence contributes, though the closing Python/Excel sentence is mild padding on top of the already-stated CSV format.

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 return values need not be described, and the tool is a simple three-parameter export. Still missing for correct invocation: the meaning of unit, overwrite behavior, and any precondition such as a solved model.

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%, so the description must supply parameter meaning, and it does for two of the three: expression is explained with a concrete example ('T'), and file is explained as a path relative to the comsol-bridge directory. The unit parameter is never mentioned, leaving one of three parameters undocumented anywhere.

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 states a specific verb and resource: export the values of an expression over the mesh to a CSV file, and it specifies the CSV content (indices plus values). This lets an agent distinguish it from an in-memory evaluation tool such as comsol_eval, though it never names a sibling 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?

The phrase '适合后续用 Python/Excel 分析' (suitable for later Python/Excel analysis) implies when to choose this tool: when a file artifact is needed for external processing. However, there is no explicit when-not guidance and no named alternative for cases where an in-session value is wanted.

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