Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
STARCCM_HOMENoThe folder that contains `star\` and `doc\`. Only needed if the STAR-CCM+ installation is somewhere other than `C:\Program Files\Siemens\*\STAR-CCM+*`.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for Simcenter STAR-CCM+. starccm_sim_* read .sim files without a licence; starccm_log_* read solver logs; starccm_docs_* and starccm_api_lookup search the local documentation; starccm_session_* and starccm_run_macro act on a running simulation. Before any macro: run starccm_session_info, check every API call with starccm_api_lookup, and ask the user before setting allow_risky.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
starccm_sim_overviewA

Summary of a STAR-CCM+ .sim file read directly from disk, without STAR-CCM+ or a licence.

Returns JSON with: STAR-CCM+ version that saved it, current iteration, volume mesh size (cells, faces, vertices), regions, number of boundaries, physics continua with their models, global parameters, reports, monitors, mesh operations, scenes, stopping criteria (used/satisfied and their limits) and the last save-history entries. Start here, then use starccm_sim_parameters, starccm_sim_boundaries, starccm_sim_monitors or starccm_sim_object for details. The file is never modified.

starccm_sim_parametersA

Global parameters (Tools > Parameters) of a .sim file: name, definition, stored value and units.

Note: the stored value of an expression is the last one STAR-CCM+ evaluated; after an edit that was not re-evaluated it can be stale. The definition is always the current one.

starccm_sim_boundariesB

Boundary types and physics values of every boundary in a .sim file.

For each boundary: region, name, type (e.g. FreeStreamBoundary, WallBoundary, StagnationBoundary), selected options and the active values with method, definition, value and units (e.g. Mach number '${Minlet}' = 0.8). Options are stored as indices (options_selected_index). When the local Java API reference is available, options also gives a label, assuming the index follows the declaration order of .Type (checked on FlowDirectionOption, FreeStreamOption and KwTurbSpecOption).

starccm_sim_monitorsA

Residual and report monitors stored in a .sim file.

Without name: list of monitors with class, linked report, current value and number of stored samples. With name: the stored history (x = iteration or time, y = monitor value) for the last last samples. Use it to check convergence or read the final value of a force coefficient without opening STAR-CCM+.

starccm_sim_findA

Finds objects in a .sim file by name, class or raw text. Returns record numbers for starccm_sim_object.

starccm_sim_objectA

All settings of one object (report, mesh operation, physics model, solver, criterion...).

References are resolved: quantities show value, units and definition; options show the selected index; other objects show their name and class, expanded to depth levels.

starccm_log_summaryA

Parses a STAR-CCM+ output log: iteration table and solver events.

Returns the column names, the first and last iteration rows, grouped events with counts and the first and last iteration where they happened (AMG divergence, reversed flow, limited cells, errors, warnings, stopping criteria, saves) and the last lines of text. Licence keys and servers are masked.

starccm_log_tailA

Last lines of a STAR-CCM+ log, optionally filtered. Licence keys and servers are masked.

starccm_docs_searchA

Searches the HTML user guide installed with STAR-CCM+ (built into a local index on first use, a few seconds). Returns page ids, titles and a snippet; read a page with starccm_docs_page.

starccm_docs_pageB

Plain text of one page of the local user guide, paginated with offset/max_chars.

starccm_api_lookupA

Checks a class or method against the local Java API reference before writing a macro: package, inheritance, exact signatures (following inherited methods to the class that declares them), or a list of similar class names when the name is wrong.

starccm_session_listA

Running STAR-CCM+ servers on this machine (Windows): port, server process, start time, connected clients and, when a GUI is connected, the simulation name from its window title. Licence data is never returned.

starccm_session_infoA

Runs a built-in read-only macro on the server at localhost: and returns the simulation name and path, workers, current iteration, regions and boundaries with types, continua and models, global parameters (definition, value, units), reports, monitors and scenes. It takes some seconds because a batch client has to start. Use it to confirm which simulation is open before running any other macro.

starccm_run_macroA

Runs a Java macro on the STAR-CCM+ server at localhost: through a batch client. The server, its GUI and the open simulation stay running; on timeout only the batch client is killed.

Before running, the source is checked against patterns. Refused: Java reflection, class loading, System.exit/getenv, Runtime and processes, network and script engines (a reflective read-only macro once crashed a parallel server when it reached unloaded 3D-CAD sketches). Refused unless allow_risky=True: 3D-CAD access, saveState, deleting or clearing objects and data, closing the simulation, running the solver, meshing, and writing files. These checks catch mistakes; they are not a sandbox, and a macro that runs has the user's full rights.

Good practice: call starccm_session_info first; verify every class and method with starccm_api_lookup; write simple macros like the ones STAR-CCM+ records; print results with sim.println(...), and prefix lines with 'MCP|' to get them back in tagged_lines.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 14 tools

Disambiguation4/5

Most tools target distinct resources: sim_* readers split cleanly by aspect (overview, parameters, boundaries, monitors, find, object), and log/docs/session tools are separate domains. There is mild overlap because starccm_sim_overview already summarizes parameters, boundaries and monitors that the dedicated tools return in detail, and starccm_sim_object can return any of them too, but the descriptions explicitly steer (start with overview, then drill down), which resolves most confusion. session_list vs session_info is clearly distinguished by list-vs-inspect.

Naming Consistency4/5

Every tool shares the starccm_ prefix and snake_case, grouped by domain (sim_, log_, docs_, session_). Minor deviation: the sim readers are noun-only (starccm_sim_overview, starccm_sim_boundaries) while other tools are verb-led (starccm_sim_find, starccm_docs_search, starccm_run_macro), so it is not a uniform verb_noun pattern. Still highly predictable and readable.

Tool Count5/5

14 tools is well within the ideal range and each group earns its place: 6 read-only .sim inspectors, 2 log tools, 2 doc-guide tools, 1 API reference checker, and 3 session/macro tools. Nothing feels redundant or missing at the count level.

Completeness4/5

The surface covers the full read/inspect lifecycle for .sim files, logs, documentation, API verification and live session discovery, and starccm_run_macro is an escape hatch for arbitrary actions. Gaps remain: no direct write tools (e.g. set a parameter or boundary value without writing a Java macro), no explicit solver/mesh control tool, and no session attach/save operations, though these are reachable through macros.