Skip to main content
Glama

comsol_use

Selects the active COMSOL model by name or tag so subsequent operations target the intended .mph file when multiple models are loaded.

Instructions

切换当前操作的模型。model 传模型名或 tag(见 comsol_status 的 models 列表)。一个后端可以同时加载多个 .mph,用这个工具指定后续操作作用于哪一个。

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": {
      "model": "<model>"
    },
    "name": "comsol_use"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A4.1/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 the key behavior that selection is stateful and affects subsequent operations, and explains the multi-model backend model. It does not say whether an unknown name/tag errors out, what the response contains, or whether selection persists across sessions/backends.

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, front-loaded with the action, then the parameter, then the rationale. Every sentence adds information; wording is tight with no redundancy.

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 one-parameter state-switching tool with an output schema covering return values, this explains the parameter source, the effect on subsequent calls, and the multi-model scenario that motivates it. Only error/precedence behavior for invalid or ambiguous model references is missing.

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 coverage is 0%, so the description must compensate, and it does: the single 'model' parameter accepts either a model name or a tag, and valid values can be discovered from comsol_status's models list. It does not give the exact tag format or a name-vs-tag precedence rule.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: '切换当前操作的模型' (switch the model of the current operation). It is clearly distinguishable from siblings like comsol_open (which loads a model) and comsol_status (which lists them), and that distinction is reinforced by pointing to comsol_status's model list.

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 an explicit trigger condition: when a backend has multiple .mph files loaded, use this to choose which one subsequent operations act on. It also routes the agent to comsol_status for valid model names. It doesn't state what happens if only one model is loaded or when the tool is unnecessary, but the context is clear.

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