Skip to main content
Glama

geometry_add_feature

Adds 3D primitives, 2D shapes, CAD imports, or Boolean operations to a COMSOL geometry sequence, enabling programmatic construction and modification of model geometry.

Instructions

Add a geometry feature to a geometry sequence.

Common feature types:

  • Block: Rectangular block (3D)

  • Cylinder: Cylinder (3D)

  • Sphere: Sphere (3D)

  • Cone: Cone (3D)

  • WorkPlane: Working plane for 2D geometry

  • Rectangle: Rectangle (2D)

  • Circle: Circle (2D)

  • Polygon: Polygon from points

  • Import: Import CAD geometry

  • Union, Intersection, Difference: Boolean operations

Args: feature_type: Type of geometry feature (Block, Cylinder, etc.) geometry_name: Geometry sequence name (default: first geometry) feature_name: Name for the feature (auto-generated if None) model_name: Model name (default: current model) **kwargs: Feature-specific properties (position, size, etc.)

Returns: Created feature 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": {
      "feature_type": "<feature_type>",
      "kwargs": "<kwargs>"
    },
    "name": "geometry_add_feature"
  }
}

Input Schema

NameRequiredDescriptionDefault
kwargsYes
model_nameNo
propertiesNo
feature_nameNo
feature_typeYes
geometry_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It mentions that the tool adds a feature and returns created feature info, and notes defaults for geometry_name and model_name, but it does not disclose prerequisites, side effects, permissions, error behavior, or what happens to existing geometry.

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 description is front-loaded with the core action and then uses a structured feature-type list followed by Args and Returns sections. The list is useful for illustrating feature_type values, and the text does not contain significant filler, though the parameter documentation could be tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex, mutation-oriented tool with six parameters, no annotations, no output schema, and zero schema description coverage. The description covers the basic purpose and some parameter defaults, but it omits prerequisites, detailed parameter semantics, return-value details, and guidance on choosing between this tool and the many specific geometry_add_* siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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, but it only partially does. It explains feature_type, geometry_name, feature_name, model_name, and vaguely describes kwargs as 'feature-specific properties (position, size, etc.),' yet it never explains the separate 'properties' object parameter present in the schema, and the relationship between kwargs and properties is ambiguous.

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 description states a specific verb and resource: 'Add a geometry feature to a geometry sequence,' and lists the feature types it supports. It is clear what the tool does, but it does not distinguish itself from dedicated siblings such as geometry_add_block, geometry_add_circle, or geometry_import.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists common feature types but gives no explicit guidance on when to use this generic tool versus dedicated siblings like geometry_add_block or geometry_import. There are no when-not conditions or routing guidance, leaving the agent to infer usage from the type list alone.

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