Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

geom_measure

Measure volume, area, length, and bounding box of selected finalized-geometry entities by dimension, returning metrics, coordinates, and entity lists for COMSOL model evaluation.

Instructions

Measure volume/area/length/bbox of selected entities on the finalized geometry.

Args: entity_dim: 3 = domains (volume), 2 = boundaries/faces (area), 1 = edges (length), 0 = points (coordinates). In 2D: 2 = domains (area), 1 = boundaries (length), 0 = points. entities: 1-based global entity numbers (None = all entities of that dimension). geometry: geometry sequence tag (default "geom1"). model: model name/tag (None = current model). Returns the primary metric (volume/area/length), bbox, vertex coords and the selected entity list.

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": "geom_measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
entitiesNo
geometryNogeom1
entity_dimNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 burden. It does disclose the return payload (primary metric, bbox, vertex coords, selected entity list) and the 'finalized geometry' prerequisite, but it never states that the call is non-mutating, how it interacts with the current selection, or what happens if geometry is not finalized.

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 one-line purpose is front-loaded, followed by a compact Args block and a return statement, with no filler. The entity_dim explanation is verbose but earns its place because its semantics are non-obvious.

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?

With four optional parameters, no annotations and no output schema, the description supplies the necessary dimension semantics and describes the return shape, which is what an agent needs before calling. Remaining gaps (units, failure modes, selection side effects) are modest for a read-style measurement tool.

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 coverage is 0%, so the description must compensate, and it largely does: it decodes entity_dim's dimension-dependent meanings (3=volume, 2=area, 1=length, 0=coordinates, plus the 2D remapping), explains entities as 1-based global numbers with None meaning all, and clarifies the geometry and model defaults. It only stops short of full compensation because units and entity-existence constraints are unaddressed.

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 first line names a specific verb (measure) plus the resources returned (volume/area/length/bbox) and scopes them to 'selected entities on the finalized geometry'. This is far more specific than a restated name. It does not explicitly distinguish itself from the sibling result_measure, so it falls short of a 5.

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 phrase 'on the finalized geometry' signals the geometry must exist as a built model before measuring, and the entity_dim mapping steers selection. There is no explicit statement of when to prefer this over result_measure or other measurement siblings, and no when-not guidance.

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