Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

geom_set_properties

Set properties on a COMSOL geometry feature using unit-aware values, and optionally rebuild the geometry to apply changes.

Instructions

Set properties on a geometry feature (expressions may include units).

Args: tag: feature tag (e.g. "blk1"). properties: dict of property name -> value, e.g. {"size": ["0.2","0.1","0.05"]} or {"r": "0.01"}. Invalid names return the available properties. build: rebuild the geometry after setting (default false). geometry: geometry sequence tag (default "geom1"). model: model name/tag (None = current model).

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": {
      "tag": "<tag>",
      "properties": "<properties>"
    },
    "name": "geom_set_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYes
buildNo
modelNo
geometryNogeom1
propertiesYes

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?

With no annotations, the description carries the full disclosure burden. It does add real behavior: default build=false, default geometry "geom1", model=None meaning the current model, and a recovery path when property names are invalid. It does not say whether existing property values are overwritten, whether setting marks the geometry stale, what is returned on success, or whether any permissions/licensing apply.

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 with the single-sentence purpose followed by a compact Args block; nothing is wasted. Some lines restate schema defaults (default false, default "geom1"), but that redundancy is defensible given the schema itself carries no descriptions.

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?

For a 5-parameter tool with a nested object, no annotations, and no output schema, the description covers every parameter, the defaults, and the invalid-name behavior. The notable remaining gap is that with no output schema, the description should state what a successful call returns rather than only what an invalid one returns.

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: all five parameters are documented with their defaults and the nested 'properties' dict is illustrated with two concrete examples ({"size": [...], "r": "0.01"}), which is essential for an additionalProperties:true object. What remains unclear is where an agent finds the valid property names per feature type, beyond triggering the invalid-name error.

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 — 'Set properties on a geometry feature' — and qualifies it with '(expressions may include units)', which is a meaningful detail for this API family. It implicitly separates itself from siblings like plot_set_properties and tree_set_properties by naming the geometry domain, though it never names an alternative explicitly.

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 'build' argument hints at a set-then-build workflow, and the note that invalid names return the available properties implies a discovery pattern for unknown property names. There is no statement of when to use this versus geom_get_properties to inspect or geom_build to rebuild, and no prerequisites.

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