Skip to main content
Glama

export_block_mesh

Mesh an implicit or mesh block non-invasively and export it to STL, 3MF, or OBJ, then automatically analyze volume, surface area, bounding box, and watertightness for simulation workflows.

Instructions

Non-invasively mesh an implicit/mesh block and export to .stl, .3mf, or .obj via ntopcl.

Never modifies your .ntop file. Automatically runs analyze_mesh on the exported mesh so you immediately get volume, surface area, bounding box, and watertightness — ready for COMSOL/Abaqus.

Args: notebook_path: Path to the source .ntop file. target: Block ID or unique name (e.g. "Final Flanges and Pipes"). export_path: Destination mesh path (.stl, .3mf, .obj, .ply). tolerance: Meshing tolerance (supports "1mm", "0.5mm", or SI float meters). unit: Export length unit ("mm", "cm", "m", "in"). sharpen: Enable sharp-edge preservation in Mesh from Implicit Body. simplify: Enable mesh simplification. inputs: Optional nTop Automate inputs dict/list. analyze: If True (default), analyze exported mesh geometry & watertightness. timeout_seconds: Optional timeout override in seconds.

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": {
      "notebook_path": "<notebook_path>",
      "target": "<target>",
      "export_path": "<export_path>"
    },
    "name": "export_block_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNomm
inputsNo
targetYes
analyzeNo
sharpenNo
simplifyNo
toleranceNo1mm
export_pathYes
notebook_pathYes
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does real work: it declares the operation non-destructive to the `.ntop` file, discloses the automatic `analyze_mesh` side effect and that it is on by default, and enumerates supported output formats. It stops short of describing filesystem overwrite behavior, error modes, or what happens on timeout.

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?

Purpose and the key non-destructive guarantee are front-loaded in the first two sentences, followed by a clean per-parameter list. Minor waste: the intro omits `.ply` while the Args block includes it, and two Args entries add no information.

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 10-parameter export tool with an output schema (so return values needn't be explained), the definition covers the safety profile, side effects, and every parameter's meaning. The remaining gap is operational: no note on where the analysis results are delivered or how failures/timeouts surface.

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% across 10 parameters, so the Args block is doing essential work: it explains that `tolerance` accepts strings like `"1mm"` or SI floats, lists allowed `unit` values, explains `sharpen` as sharp-edge preservation, and notes `analyze` defaults to True and what it returns. A few entries (`inputs`, `timeout_seconds`) merely restate the parameter name, which keeps this from a 5.

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?

States a specific verb+resource+scope: mesh an implicit/mesh block and export to `.stl`/`.3mf`/`.obj` via `ntopcl`. The scope is further narrowed with 'Non-invasively,' and the mention of auto-running `analyze_mesh` implicitly separates this tool from that sibling.

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 implied rather than stated: 'Never modifies your `.ntop` file' signals a safe, read-only-on-model workflow, and 'Automatically runs `analyze_mesh`' tells the agent not to call that tool separately. However, there is no explicit statement of when to prefer this over `run_notebook` or a plain `evaluate_block`, and no preconditions (e.g. nTop Automate availability) are given.

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