Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

tree_selection_get

Retrieve the entities or named selections assigned to a specified COMSOL model tree node for inspection and reuse.

Instructions

Show the entities / named selection assigned to a node.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 burden, yet it only says data is 'shown'. It does not state that the operation is read-only/non-mutating, what happens when the node has no assigned selection (empty result vs error), whether a missing path fails, or how the optional model scopes the lookup.

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 short sentence with no filler and the core object front-loaded. Its brevity borders on under-specification, but nothing is redundant or padded.

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?

With no annotations, no output schema, and 0% parameter description coverage, the description needed to explain return shape and both parameters. It does neither, so an agent cannot tell what the response contains (entity list, named selection, or both) or how 'model' affects the lookup.

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 the description must explain both parameters, but it only alludes to one and calls it a 'node' while the parameter is named 'path'. The optional 'model' parameter (likely model/workspace scoping) is never mentioned, so its meaning is left entirely 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 concrete verb ('Show') and resource ('entities / named selection assigned to a node'), so an agent can tell this is a read of selection data at a tree location. It does not differentiate itself from lookalike siblings such as selection_get, mat_get_selection, or tree_selection_set, and the 'node' wording drifts from the schema's 'path' parameter.

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 word 'Show' implies a read/inspect use case, which is enough to infer this is the getter counterpart to tree_selection_set. However, no explicit when-to-use condition, prerequisite, or alternative (e.g., selection_get vs this tree-scoped variant) is stated, leaving the agent to guess.

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