Skip to main content
Glama
pointwise-mcp

pointwise-mcp

by Jash2012

pw_export_openfoam

Destructive

Export a volume mesh from Fidelity Pointwise into OpenFOAM case polyMesh format, mapping boundary domains to patches by name pattern and optionally running checkMesh.

Instructions

Export the volume mesh with CAE solver OpenFOAM to <case_dir>/constant/polyMesh. Boundary domains map to OpenFOAM patches by name pattern (first match wins). Default patches: symmetry-* -> 'symmetry' (symmetryPlane), farfield-* -> 'farfield' (patch), everything else -> 'wall' (wall). Unmatched domains fail the export unless unassigned='allow'. Optionally writes minimal system/ files and runs checkMesh in WSL.

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": {
      "case_dir": "<case_dir>"
    },
    "name": "pw_export_openfoam"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksNoBlock name patterns to export (default all).
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).
patchesNoOrdered patch rules {name, type, domains}.
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_asNoAlso save the project (with the OpenFOAM BCs) to this .pw.
case_dirYesOpenFOAM case folder; the mesh goes to constant/polyMesh.
overwriteNoReplace an existing polyMesh in case_dir.
unassignedNoWhat to do with boundary domains no rule matches.error
run_checkmeshNoRun OpenFOAM checkMesh in WSL after export.
discard_unsavedNoLive backend only: allow replacing a GUI session with unsaved changes.
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.
write_case_filesNoWrite minimal system/controlDict, fvSchemes, fvSolution if missing.
export_attributesNoOpenFOAM exporter attributes, e.g. {"PointPrecision": 16}.
checkmesh_timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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, and the description reinforces this with concrete consequences: files are written into constant/polyMesh, unmatched domains abort the export, minimal system/ files may be created, and checkMesh runs in WSL. That is real behavioral context beyond the annotations, though it omits what happens to pre-existing files when overwrite defaults to false and how save_as interacts with the live session.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Five short sentences, front-loaded with the action and destination, then the patch-mapping rules, then the failure condition, then the optional side effects. Every sentence carries operational information; nothing is redundant or buried.

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 14-parameter destructive export tool with an output schema and clear annotations, the description covers the essential semantics: target location, patch mapping, failure mode, and optional side effects. Remaining gaps (backend selection, timeout behavior, project handling) are adequately documented in the schema itself.

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 93%, so the schema already carries most parameter meaning. The description does add genuine semantics the schema lacks: the default pattern-to-patch mapping (symmetry-*, farfield-*, catch-all 'wall') and first-match-wins ordering for the patches rules, which clarify how the patches and unassigned parameters behave in practice.

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?

The description opens with a specific verb and resource: 'Export the volume mesh with CAE solver OpenFOAM to <case_dir>/constant/polyMesh.' That destination path immediately separates it from mesh-generation siblings such as pw_volume and pw_surface_mesh, so an agent can route correctly 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 Guidelines3/5

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

Usage is implied rather than stated: the tool is for getting an existing volume mesh into an OpenFOAM case, and the mention of 'unassigned="allow"' hints at a strict-by-default posture. However, there is no explicit when-to-use versus alternatives guidance, no prerequisite statement (e.g., that a volume mesh must already exist), and no note on batch versus live backend choice beyond what the schema documents.

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