Skip to main content
Glama

geometry_add_sphere

Add a sphere to a COMSOL geometry by defining its center position and radius, with optional model, geometry, component, and feature name settings.

Instructions

Add a sphere to the geometry.

Args: position: Center [x, y, z] in meters radius: Radius in meters (default: 0.5) geometry_name: Geometry sequence name (default: first geometry) component_name: Component name (default: 'comp1') feature_name: Feature name (auto-generated if None) model_name: Model name (default: current model)

Returns: Created sphere info

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

Input Schema

NameRequiredDescriptionDefault
radiusNo
positionNo
model_nameNo
feature_nameNo
geometry_nameNo
component_nameNocomp1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/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, yet it discloses little beyond defaults. It does not say whether the sphere is persisted as a feature in a geometry sequence, whether the target model/geometry must already exist, what happens on invalid input, or what 'Created sphere info' actually contains — a meaningful gap 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.

Conciseness4/5

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

The one-line purpose is front-loaded, and the Args/Returns block is compact with no filler. The only waste is the vague 'Returns: Created sphere info' line, which adds little.

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?

There is no output schema and no annotations, and the description covers parameters adequately but leaves behavioral context thin: return shape is undefined and prerequisites (model connection, existing geometry sequence) are unstated. Adequate to invoke, incomplete for understanding consequences.

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

Parameters3/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 for all six parameters; it does document each one and adds real meaning — 'Center [x, y, z]' rather than a bare position array, and meters as the unit for both position and radius. However it omits units/defaults for some fields and says nothing about accepted string forms despite the schema allowing number-or-string unions for radius and position elements.

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 gives a specific verb plus resource: 'Add a sphere to the geometry.' Against a sibling set full of shape-specific constructors (geometry_add_block, geometry_add_circle, geometry_add_cylinder), the sphere resource alone makes it distinguishable, though the description never states that distinction 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 by the operation itself — an agent infers 'use this when you need a spherical primitive.' There is no guidance on when to prefer a boolean union of shapes, no prerequisite about an existing geometry sequence, and no exclusions relative to the many sibling add_* tools.

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