Skip to main content
Glama

comsol_selection

Create, list, or remove named Box, Ball, or Explicit selections to target domains, boundaries, edges, or faces in a COMSOL model for physics assignments.

Instructions

命名选择工具(对应 COMSOL 的 Box/Ball/Explicit Selection)。action=list 列出选择及其实体;create 创建选择;remove 删除。selection_type=Box 时用 box=[xmin,xmax,ymin,ymax,zmin,zmax](2D 可只给 4 个数);Ball 时用 center=[x,y,z] + radius;Explicit 时用 entities=[...]。entity_dim 为选择的实体维度:3=域、2=面(3D 边界)、1=边、0=自动取几何维度。condition 默认 intersects(与选择区域相交即选中),需要完全包含时传 inside。创建后可在 comsol_physics 里用 named_selection 把选择绑到边界条件上。

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

Input Schema

NameRequiredDescriptionDefault
boxNo
tagNo
actionNolist
centerNo
radiusNo
entitiesNo
componentNo
conditionNo
entity_dimNo
selection_typeNoBox

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It does disclose some useful behavior: the default condition is intersects, and inside is used for full containment; entity_dim=0 means it automatically takes the geometry dimension. However, it does not state whether remove has side effects on boundary conditions already bound to the selection, whether create overwrites an existing tag, or what permissions are required. That is a meaningful gap for a mutation tool with zero annotation coverage.

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?

The description is dense but front-loaded: the purpose comes first, then actions, then per-type parameter recipes, then the integration note. Almost every clause carries information. It is slightly cramped because multiple concepts, such as entity_dim mapping and condition defaults, are packed into long sentences, but there is no filler.

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?

The output schema exists, so return values need not be explained. An output schema is present. The description covers the essential preconditions for correct invocation: the action semantics, parameter shape per selection type, dimension mapping, and the containment mode. The remaining gap is the lack of annotation coverage and the side-effect behavior of remove, which a mutation tool ideally should address.

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

Parameters5/5

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

Schema description coverage is 0% across 10 parameters, so the description must supply the meaning. It documents the ordering of box=[xmin,xmax,ymin,ymax,zmin,zmax], including the 2D shorthand with only 4 numbers; the center+radius pair for Ball; entities for Explicit; the dimension mapping for entity_dim (3=domain, 2=face, 1=edge, 0=auto); and the intersects/inside semantics for condition. Only tag and component go undocumented. The description adds substantial semantics far beyond the bare schema.

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?

The description names the tool's purpose precisely: named selections corresponding to COMSOL Box/Ball/Explicit selections. It then enumerates the three supported verbs (list/create/remove), so an agent immediately knows the scope of operations. It also points to a sibling (comsol_physics with named_selection) as the downstream consumer, and this differentiates the tool from others in the catalog.

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?

For each action, it gives clear implied usage: list to inspect existing selections and their entities, create to make one, remove to delete. It also states which selection_type to use with which geometry parameter (Box requires box, Ball requires center plus radius, Explicit requires entities). It does not explicitly state when not to use this tool or when to choose another sibling. However, the guidance for choosing the parameter pattern is unambiguous.

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