Skip to main content
Glama

physics_boundary_selection

Set up COMSOL boundary conditions by choosing the physics interface, condition type, boundary numbers, and physics-specific properties.

Instructions

Generic boundary condition setup with boundary selection.

Use this tool to configure any boundary condition by specifying:

  1. The physics interface name

  2. The boundary condition type

  3. The boundary numbers to apply the condition to

  4. Properties specific to the boundary condition

Common boundary condition types by physics:

Heat Transfer (ht):

  • Temperature: Set T0 (temperature)

  • HeatFlux: Set q0 (heat flux)

  • HeatFluxBoundary: Set HeatFluxType=ConvectiveHeatFlux, h and Text

Laminar Flow (spf):

  • InletBoundary: Set U0in (velocity); k-epsilon also requires explicit turbulence inputs

  • OutletBoundary: Set p0 (pressure)

  • Wall: No-slip wall

Solid Mechanics (solid):

  • Fixed: Fixed constraint

  • BoundaryLoad: Set Fx, Fy, Fz or FAx, FAy, FAz

Args: physics_name: Name or label of the physics interface boundary_condition_type: Type of boundary condition boundary_numbers: List of boundary numbers properties: Dictionary of property names and values model_name: Model name (default: current model)

Returns: Configuration confirmation

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": {
      "physics_name": "<physics_name>",
      "boundary_condition_type": "<boundary_condition_type>",
      "boundary_numbers": "<boundary_numbers>"
    },
    "name": "physics_boundary_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_nameNo
propertiesNo
physics_nameYes
boundary_numbersYes
boundary_condition_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it discloses little: 'Returns: Configuration confirmation' is the only outcome statement. It does not say whether existing boundary conditions on the same boundaries are overwritten, whether the call mutates the model that later solves, or what errors arise when a type is invalid for the physics.

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?

Front-loaded purpose sentence, then numbered inputs and a grouped type reference; the structure makes scanning easy. Minor waste in the Args block, which duplicates parameter titles, and the trailing 'Returns: Configuration confirmation' adds little.

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

Completeness3/5

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

For a 5-parameter mutation tool with zero schema descriptions and no annotations, the definition covers the vocabulary of types and properties but omits prerequisites, overwrite behavior, and how to obtain boundary numbers. No output schema exists, so the vague return statement leaves the response shape undefined.

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

Parameters3/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. The per-physics table adds real meaning to boundary_condition_type and properties (T0, q0, h/Text, U0in, p0, Fx/Fy/Fz), but the 'Args' block itself largely restates schema titles, and boundary_numbers gets no guidance on how boundary IDs are discovered.

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?

The description names a specific verb and resource ('configure any boundary condition' on specified boundaries) and scopes it as the generic entry point. It never explicitly distinguishes itself from the physics-specific siblings such as physics_setup_heat_boundaries or physics_configure_boundary, so an agent must infer which to prefer.

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 numbered 'by specifying' steps and the per-physics type table imply when the tool applies and what inputs are expected. There is no explicit when-not guidance, no prerequisite statement (e.g. that the physics interface must already exist), and no routing rule against the specialized boundary tools.

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