Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

selection_get

Retrieve and display the entities contained in a named selection for a specified COMSOL model, so you can inspect which geometric or mesh elements are included.

Instructions

Show the entities contained in a named selection.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. "Show" implies a read operation, but the description says nothing about what happens when the name does not exist, whether the result depends on an active model, or what form the returned entities take.

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?

A single well-formed sentence with the resource stated before the qualifier, so it is front-loaded and free of filler. Its brevity reflects under-specification rather than bloat, but nothing in the wording is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool with no annotations, no output schema, and 0% schema coverage, the description should at minimum cover the model parameter and the shape of the returned entities. It covers neither, so an agent lacks the information needed to invoke it confidently beyond the happy path.

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

Parameters2/5

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

Schema description coverage is 0%, so both parameters rely on the description for meaning. "Named selection" implicitly explains the required name parameter, but the optional model parameter is never mentioned or explained, leaving half the inputs 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?

"Show the entities contained in a named selection" states a specific verb (show/retrieve) and a specific resource (entities inside a named selection), which is more informative than a bare restatement of the name. It does not, however, distinguish this from siblings such as selection_list or mat_get_selection/phys_get_selection, so the agent cannot tell which retrieval variant applies in a given context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of prerequisites, and no reference to any alternative tool. The agent must infer from the name alone that this reads selection contents while selection_list enumerates selections and the mat_/phys_ variants serve other scopes.

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

Deploy Server

Other Tools