Skip to main content
Glama
pointwise-mcp

pointwise-mcp

by Jash2012

pw_run_glyph

Destructive

Run Glyph/Tcl code in a safe interpreter for Pointwise tasks not covered by other tools, optionally loading a project and saving results.

Instructions

Escape hatch: run Glyph/Tcl code for things the other tools do not cover. The code runs in a Tcl safe interpreter: Tcl core plus pw::/pwu:: commands and Glyph objects; no exec, open, file, socket, load, source, cd or exit, and pw::Script is blocked, so there is no shell access. Returns everything the code puts and its last result. Optionally loads project first and saves to save_as after.

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": {
      "code": "<code>"
    },
    "name": "pw_run_glyph"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesGlyph (Tcl) code.
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).
projectNoOptional .pw to load first (batch starts empty otherwise).
save_asNoOptional .pw to save to afterwards.
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark the tool as non-read-only and destructive, and the description adds important behavior beyond that: it runs in a Tcl safe interpreter, blocks shell/file/exec/socket access and pw::Script, returns all output plus the last result, and can load and save projects. These details materially help an agent understand both the sandbox and the side effects of execution.

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 description is front-loaded with the escape-hatch purpose and then covers execution safety, return behavior, and optional load/save steps. It is dense but efficient, with little wasted wording, though the long semicolon-separated sandbox list makes it slightly harder to scan.

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 complex arbitrary-code tool with an output schema and rich annotations, the description supplies the key missing context: sandbox restrictions, return behavior, and project load/save semantics. It does not describe backend differences or timeout behavior in the prose, but those are covered by the input schema.

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 100%, so the parameters are already fully documented in the input schema. The description adds a little operational context about loading `project` first and saving to `save_as` afterward, but it largely restates what the schema already provides and does not explain backend, timeout, or discard_unsaved behavior beyond the schema.

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 uses a specific verb and resource: 'run Glyph/Tcl code'. It also distinguishes the tool from siblings by framing it as an 'escape hatch' for things the other tools do not cover, so an agent can tell when this is the fallback rather than a routine operation.

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?

The description clearly guides usage toward tasks not covered by the other tools, which implicitly says not to use it when a dedicated tool is available. It does not name specific sibling alternatives to try first, but the guidance is otherwise clear.

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