Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

mesh_set_property

Configure properties on an existing COMSOL mesh feature, such as the FreeTet method or boundary-layer count, to control how the mesh is generated.

Instructions

Set properties on an existing mesh feature (e.g. FreeTet method, BL layers).

Args: mesh: mesh sequence tag (None = first). feature: mesh feature tag, e.g. "ftet1" (None = the last feature). property: one property name, e.g. "method", "blnlayers". value: value for property. properties: alternatively a dict of several properties. component: component tag (None = auto-detect). model: model name/tag (None = current model). Example: mesh_set_property(feature="ftet1", properties={"method": "delaunay"})

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

Input Schema

NameRequiredDescriptionDefault
meshNo
modelNo
valueNo
featureNo
propertyNo
componentNo
propertiesNo

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 genuinely useful behavior the schema cannot: that the target feature must already exist and what each None default resolves to (first mesh, last feature, auto-detect component, current model). It stops short of stating side effects — whether the mesh must be rebuilt afterward, what happens if the feature tag or property name is invalid, or whether changes persist — which are the key unknowns for a mutation tool with zero annotation coverage.

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?

Front-loaded with the one-sentence purpose, followed by a compact Args block where every line adds information, and closed with a single concrete example call. Nothing is redundant or padded.

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 seven-parameter mutation tool with no annotations and no output schema, the definition covers parameters and defaults well but leaves the return value and post-call requirements (rebuild, validation errors) unaddressed. An agent could call it correctly but would not know what to expect afterward.

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 seven parameters are explained with meaning, example values, and default resolution behavior. The main gap is that 'property' and 'properties' are only loosely marked as alternatives ('alternatively a dict of several properties') without stating mutual exclusivity, and valid property names beyond the two examples are not enumerated.

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 an existing mesh feature', and gives concrete examples of the properties involved (FreeTet method, BL layers). It does not explicitly distinguish itself from close siblings such as mesh_set_size or mesh_add_feature, so an agent must infer that this tool edits an existing feature rather than creating one.

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 word 'existing' signals a feature must already be present, and the None defaults ('None = the last feature', 'None = current model') hint at convenience invocation. There is no explicit when-to-use versus when-not guidance and no mention of alternatives like mesh_add_feature for creating features or mesh_build after changing BL layers.

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