Skip to main content
Glama
pointwise-mcp

pointwise-mcp

by Jash2012

pw_trex

Destructive

Set up T-Rex boundary layers on an unstructured volume block, creating the block and farfield first if needed, then assign boundary types and first-layer height before volume meshing.

Instructions

Set up T-Rex boundary layers on the unstructured volume block. If the project has no block yet, builds one first: farfield.mode 'auto' runs Automatic Volume Mesh (farfield box/sphere/cylinder plus symmetry planes, e.g. ['ymin'] or 'auto' for a half model cut at y=0); 'existing' uses domains that already enclose the volume. Then assigns T-Rex boundary types by domain-name pattern (first match: symmetry->Match, off->Off, adjacent_grid->AdjacentGrid, wall->Wall), sets the first-layer height on every Wall condition and the block's T-Rex attributes. Does not generate cells: run pw_volume next.

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": {
      "first_layer_height": "<first_layer_height>"
    },
    "name": "pw_trex"
  }
}

Input Schema

NameRequiredDescriptionDefault
offNoDomain patterns with no layers (default ['farfield-*']).
wallNoDomain patterns that grow layers (default ['*'], i.e. everything not matched earlier).
blockNoBlock name pattern when the project has several.
backendNo'batch' (default): a headless tclsh run per call, state passed through .pw files. 'live': send the step to a running Pointwise GUI through its Glyph Server (port 2807).
projectNoInput Fidelity Pointwise project (.pw). Required with the batch backend. With the live backend omit it to work on the session open in the GUI; giving it loads that file first.
save_asNoWhere to write the resulting .pw. Batch default: replace `project` in place, but only after the step succeeded. Live default: do not save.
farfieldNoHow to create the block if none exists.
symmetryNoDomain patterns set to T-Rex Match (default ['symmetry-*']).
cell_typeNoT-Rex cell types; TetPyramidPrismHex/AllAndReducePyramids give prisms on triangle walls.
max_layersNoMaximum T-Rex layers; 0 turns T-Rex off. Omit to keep the current value (Automatic Volume Mesh sets 1000, i.e. grow until isotropic).
full_layersNoLayers grown without front decimation. 0 enables multiple normals at sharp edges and near symmetry planes (Pointwise's advice for half models).
growth_rateNoLayer-to-layer growth rate (default 1.2).
adjacent_gridNoDomain patterns set to AdjacentGrid.
discard_unsavedNoLive backend only: allow replacing a GUI session with unsaved changes.
push_attributesNoPush layer spacing onto Match (symmetry) domains.
timeout_secondsNoSeconds before the Pointwise run is stopped with kind=timeout (default 1800). Counts time the computer is awake; sleep or hibernation does not count.
collision_bufferNoSpace kept between colliding fronts, in cell heights (default 2).
isotropic_heightNoScale on the isotropic stop height (default 1).
centroid_skewnessNoSkew criterion: centroid skewness limit (1 = off).
equiangle_skewnessNoSkew criterion: equiangle skewness limit (1 = off).
first_layer_heightYesWall-normal height of the first cell (model units), e.g. 2.5e-5 m for y+~1.
max_included_angleNoSkew criterion: max included angle of T-Rex cells, degrees (default 170).
equivolume_skewnessNoSkew criterion: equivolume skewness limit (1 = off).
extra_block_attributesNoOther block solver attributes, e.g. {"TRexIsotropicSeedLayers": 2}.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation profile is known. The description adds real behavior beyond that: it may create a block as a side effect, it applies the first-layer height to every Wall condition, and it resolves domain patterns by first-match precedence (symmetry→Match, off→Off, adjacent_grid→AdjacentGrid, wall→Wall). It omits save/rollback semantics and timeout behavior, which stay in the schema.

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?

A single dense paragraph that is front-loaded with the core action and ends with the handoff to pw_volume. Nearly every clause carries information, though the enumeration of farfield shapes and symmetry options partially duplicates the schema and could be trimmed.

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 24-parameter mutation tool with full schema coverage, an output schema, and annotations, the description supplies the workflow context an agent needs: when a block is auto-built, how domain patterns are resolved, and what step follows. Backend, save, and timeout details are adequately handled by the schema.

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 100%, so baseline is 3, but the description adds meaning not present in the schema: the precedence order when a domain matches multiple patterns, the auto symmetry-plane discovery, and the fact that first-layer height is applied across all Wall conditions. This goes beyond restating parameter descriptions.

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 and resource — 'Set up T-Rex boundary layers on the unstructured volume block' — and explicitly bounds the operation ('Does not generate cells: run pw_volume next'), which cleanly separates it from the sibling that does generate cells. An agent can identify the tool without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit routing: use this tool for T-Rex setup, then run pw_volume for cell generation. Also states the conditional branch — if the project has no block, it builds one first — and distinguishes farfield.mode 'auto' (external aero, box/sphere/cylinder) from 'existing' (internal flow or self-meshed farfield), with a concrete half-model example ['ymin'].

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