Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

geom_entity_info

Enumerate COMSOL geometry entities with bounding boxes, centers, and area/volume/length measures to select entity numbers for boundary conditions using bbox filters.

Instructions

Enumerate geometry entities with bbox, center and measure (area/volume/length).

Use this to choose entity numbers for boundary conditions, e.g. find the top faces of a block (filter_bbox with zmin=zmax=0.02).

Args: entity_dim: 3 = domains, 2 = boundaries/faces, 1 = edges, 0 = points (in 2D use 2 = domains, 1 = boundaries, 0 = points). filter_bbox: optional [xmin,xmax,ymin,ymax(,zmin,zmax)] with null for unbounded sides, e.g. [null,null,null,null,0.019,0.021]. condition: how to compare an entity bbox with filter_bbox: "inside" (default), "intersects", or "center". tol: tolerance for the bbox comparison (in geometry length units). limit: maximum number of entities returned (default 100, max 500). geometry: geometry sequence tag (default "geom1"). model: model name/tag (None = current model).

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

Input Schema

NameRequiredDescriptionDefault
tolNo
limitNo
modelNo
geometryNogeom1
conditionNoinside
entity_dimNo
filter_bboxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/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 meaningful behavior: default limit of 100 with a hard max of 500, default geometry tag 'geom1', model=None meaning the current model, and default condition 'inside'. What it omits is what happens on truncation (silent cap vs. error), result ordering, and cost for large geometries — the operational details that matter for a 7-parameter query against a live model.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the primary use case are front-loaded in the first two lines, followed by a parameter block that is dense and free of filler. Every sentence either states scope, gives an example, or defines a parameter.

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 no output schema, the description correctly describes what comes back (bbox, center, and a measure that is area/volume/length depending on entity_dim), which is the essential return-value signal. Given seven parameters and no annotations, the only remaining gap is behavior under truncation and result ordering; otherwise an agent has enough to call it correctly.

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%, yet the Args block documents all seven parameters with real semantic content: entity_dim's dimension mapping and its 2D reinterpretation, filter_bbox's expected [xmin,xmax,ymin,ymax(,zmin,zmax)] layout with null for unbounded sides, the three condition modes, tol's units, limit's default/max, and the geometry/model defaults. This fully compensates for the empty schema.

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 ('Enumerate geometry entities') plus the payload each entity carries (bbox, center, measure). An agent can tell this is a query/listing tool rather than a mutation tool. It stops short of naming which sibling to prefer (e.g. geom_measure or geom_stats), so differentiation is inferred rather than stated.

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?

Gives a concrete when-to-use case: picking entity numbers for boundary conditions, illustrated with a worked example of finding top faces via filter_bbox with zmin=zmax=0.02. No when-not-to-use guidance or explicit alternative is offered, but the positive guidance is unusually actionable.

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