Skip to main content
Glama

Combine Meshes (Boolean)

mesh_boolean
Idempotent

Use this when the user wants to union, subtract, or intersect two imported triangle mesh solids (STL, OBJ, or 3MF). Supports union, subtract (A minus B) and intersect. Pass each operand as { file } on the MCP server or { data } with base64 mesh bytes; formats are detected or may be specified. Returns volume in mm³, triangle count and a binary STL as data_base64; pass that payload to import_step to continue modeling. Inputs must be closed, consistently oriented 2-manifold meshes. Open, non-manifold, or invalid meshes return an error. This computes mesh geometry and does not create an editable B-rep feature tree.

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": {
      "operation": "<operation>",
      "a": "<a>",
      "b": "<b>"
    },
    "name": "mesh_boolean"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst mesh: { file } or { data } base64, optional format stl|obj|3mf.
bYesSecond mesh: { file } or { data } base64, optional format stl|obj|3mf.
operationYes
tolerance_mmNoVertex weld tolerance in mm. Default 0.000001.
max_trianglesNoMaximum triangles per input and output. Default and maximum 100000.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / maxTriangles
      Removed value: -{
      -  "description": "Maximum triangles per input and output. Default and maximum 100000.",
      -  "type": "integer"
      -}
    • addedInput schema / properties / max_triangles
      Added value: +{
      +  "description": "Maximum triangles per input and output. Default and maximum 100000.",
      +  "type": "integer"
      +}
    • removedInput schema / properties / toleranceMm
      Removed value: -{
      -  "description": "Vertex weld tolerance in mm. Default 0.000001.",
      -  "type": "number"
      -}
    • addedInput schema / properties / tolerance_mm
      Added value: +{
      +  "description": "Vertex weld tolerance in mm. Default 0.000001.",
      +  "type": "number"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: states the return payload (volume in mm³, triangle count, binary STL as data_base64), the error behavior for invalid meshes, and the key limitation that no editable feature tree is produced. This tells the agent both what it gets back and what the operation fundamentally cannot do.

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 trigger and operations, then constraints, then return value and limitation — a sensible order with no filler. Minor redundancy in restating the operation list that the enum already carries, but the operand-order note makes that restatement worthwhile.

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

Completeness5/5

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

For a geometry tool with nested operand objects and an output schema, everything an agent needs is present: accepted formats, operand encoding, validity requirements, failure mode, result contents, and how to continue modeling. Nothing material is missing.

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 coverage is 80%, so the baseline is 3; the description earns more by clarifying the operand encoding ('{ file }' vs '{ data }' base64, format detected or specified) and, critically, that subtract means A minus B. tolerance_mm and max_triangles are left entirely to the schema, which is acceptable at this coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb+resource ('union, subtract, or intersect two imported triangle mesh solids') and enumerates the exact operations. The closing sentence ('does not create an editable B-rep feature tree') distinguishes it from mesh-to-feature siblings, so an agent can pick it without opening another schema.

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?

Explicit trigger ('Use this when the user wants to...') plus hard preconditions: inputs must be closed, consistently oriented 2-manifold meshes, and open/non-manifold meshes error out. It also points to import_step as the downstream continuation. It stops short of naming mesh_to_features as the alternative for when an editable B-rep is actually wanted, so the exclusion is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.