Skip to main content
Glama

comsol_sweep

Configure parametric sweeps for COMSOL studies: list existing scan settings, add parameter value combinations, or remove sweeps so subsequent solves evaluate all combinations.

Instructions

参数扫描工具。action=list 查看现有研究及扫描配置;add 给研究加 Parametric 特征(parameters 是参数名列表,values 是每个参数的取值串,空格分隔,长度需与 parameters 一致);remove 删除扫描。加完后正常 comsol_solve 就会对所有组合求解。

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

Input Schema

NameRequiredDescriptionDefault
studyNo
actionNolist
valuesNo
parametersNo

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 provided, so the description carries the full burden; it does disclose that add mutates the study by attaching a Parametric feature and that remove deletes the sweep. It does not say whether add replaces or duplicates an existing sweep, whether remove affects solved results, or what errors occur when the values/parameters lengths mismatch.

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?

Compact, front-loaded, and organized action-by-action with semicolons; there is no filler and every clause (including the space-separated encoding rule and the comsol_solve handoff) adds actionable 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?

An output schema exists, so return values need not be described, and the description covers all three actions plus the follow-up solve step. Remaining gaps are the unmentioned study parameter and idempotency of add/remove, which are minor but real for a mutation tool with no annotations.

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 does for three of four parameters: action values are enumerated with their effects, parameters is defined as a name list, and values is defined as a space-separated value string whose length must match parameters — encoding detail absent from the schema. The study parameter is never explained, leaving the fourth parameter undocumented.

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 (parameter sweep) and resource (studies / Parametric feature) and breaks the tool into three named actions (list/add/remove), each with its own effect. It does not differentiate itself from the sibling comsol_params, which likely also touches parameter values, so the agent must infer which one to use.

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?

Gives concrete usage flow: call action=list to inspect existing studies and sweep configuration, add to create the sweep, remove to delete it, and notes that after adding, a normal comsol_solve covers all combinations. It does not state when to prefer this over comsol_params or comsol_solve directly, nor what happens if a sweep already exists.

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