Skip to main content
Glama

physics_configure_boundary

Configure boundary conditions for a physics interface on selected boundaries and assign property values in a COMSOL model for heat transfer, structural, or electrostatic simulations.

Instructions

Configure a boundary condition for a physics interface.

Common boundary conditions for Heat Transfer:

  • "Temperature": Fixed temperature

  • "HeatFlux": Heat flux boundary

  • "HeatFluxBoundary": Set HeatFluxType=ConvectiveHeatFlux for convection

  • "ThermalInsulation": Thermal insulation (adiabatic)

Common for Solid Mechanics:

  • "Fixed": Fixed constraint

  • "Roller": Roller constraint

  • "Symmetry": Symmetry plane

  • "BoundaryLoad": Applied force/pressure

Common for Electrostatics:

  • "Ground": Zero potential boundary

  • "ElectricPotential": Specified voltage

  • "SurfaceChargeDensity": Surface charge

  • "ZeroCharge": Zero normal displacement field

Args: physics_name: Name or label of the physics interface boundary_condition: Type of boundary condition (e.g. "Temperature", "HeatFlux") boundary_selection: Boundary/edge numbers to apply condition to properties: Dictionary of property names and values (e.g. {"T0": "293.15[K]"}) model_name: Model name (default: current model)

Returns: Created boundary condition info

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": "<boundary_condition>",
      "boundary_selection": "<boundary_selection>"
    },
    "name": "physics_configure_boundary"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_nameNo
propertiesNo
physics_nameYes
boundary_conditionYes
boundary_selectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. The "Returns: Created boundary condition info" line usefully reveals that this creates a new condition rather than merely editing, and the enumerated mappings disclose which condition names map to which underlying settings (e.g. HeatFluxBoundary setting HeatFluxType=ConvectiveHeatFlux). What is missing is whether existing conditions on the selected boundaries are overwritten, what happens on invalid names or boundary numbers, and whether units must be embedded in property values outside the single example.

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 single-sentence purpose is front-loaded, and the long enumeration, though bulky, is high-value reference data rather than filler. Minor waste remains: "HeatFlux" and "HeatFluxBoundary" are both listed without clarifying the distinction, and the Args/Returns blocks restate parameter names the schema already provides.

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 five-parameter, output-schema-less mutation tool with no annotations, the definition covers inputs well but leaves the return value as a bare "Created boundary condition info" with no structure, and says nothing about side effects on pre-existing boundary conditions or failure modes. An agent can call it, but cannot fully predict the result.

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 description coverage is 0%, so the description must compensate, and it largely does: each of the five parameters is documented in the Args block, boundary_condition gets an extensive per-domain value catalog, and property values are illustrated with "293.15[K]". The one real gap is that the keys of the `properties` dict are only shown by one example, without saying they vary by boundary_condition type.

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 specific verb and resource ("Configure a boundary condition for a physics interface") and immediately enumerates the concrete boundary-condition types per physics domain, so the agent knows exactly what class of operation this is. It does not, however, distinguish itself from siblings such as physics_configure_acoustic_boundary, physics_configure_pde_boundary, or physics_setup_heat_boundaries, which appear to overlap.

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?

Usage is only implied: the enumerated lists of valid condition names per physics (Heat Transfer, Solid Mechanics, Electrostatics) tell the agent what values to pass, which indirectly signals applicability. There is no statement of when to prefer this generic tool over the domain-specific siblings, nor any prerequisite (e.g. that the physics interface must already exist).

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