Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NONMEM_NMFE_PATHNoPath to the NONMEM nmfe executable (e.g., /opt/NONMEM/nm75/run/nmfe75). Required for executing NONMEM runs via the submit_run tool.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_ext_file

Parse a NONMEM .ext file to extract parameter estimates, standard errors, OFV, eigenvalues, and condition number.

read_lst_file

Parse a NONMEM .lst file for termination status, minimization success, shrinkage, condition number, and warnings.

parse_control_stream

Parse a NONMEM control stream (.ctl/.mod) into structured components: $THETA, $OMEGA, $SIGMA, $EST options, input columns, data file, and ADVAN/TRANS.

read_nm_dataset

Read and summarize a NONMEM dataset: subject count, observation count, dose records, missing values, and column overview.

read_nm_tables

Parse NONMEM table output files (SDTAB, PATAB, etc.) and compute summary statistics for key columns (CWRES, PRED, IPRED, ETAs).

compare_models

Compare multiple NONMEM runs by OFV, delta-OFV, parameter counts, and AIC. Accepts a list of run directories or .ext file paths.

summarize_run

Generate a comprehensive summary of a NONMEM run by combining control stream, .ext, and .lst results.

list_runs

Scan a project directory for NONMEM run files and list their status (completed/failed/running).

submit_run

Submit a NONMEM run (async). Returns a job ID for polling. Requires NONMEM installation.

check_run_status

Check the status and progress of a submitted NONMEM run by job ID.

get_run_results

Get full parsed results of a completed NONMEM run by job ID.

cancel_run

Cancel a running NONMEM job.

run_diagnostics

Run comprehensive post-run diagnostics: boundary checks, condition number, shrinkage, precision (RSE), convergence warnings. No NONMEM needed.

execute_psn_vpc

Run VPC using PsN (async). Returns job ID for polling. Requires PsN + NONMEM.

execute_psn_bootstrap

Run bootstrap using PsN (async). Returns job ID for polling. Requires PsN + NONMEM.

check_psn_status

Check status and progress of a PsN VPC or bootstrap job.

parse_psn_results

Parse results from an existing PsN output directory (VPC or bootstrap). No PsN/NONMEM installation needed.

check_nonmem_setup

Check NONMEM, PsN, R, and mrgsolve installation status and paths.

translate_to_mrgsolve

Translate a NONMEM control stream (.ctl/.mod) to mrgsolve model code. Handles ADVAN1-13, THETAs, OMEGAs, $PK, $DES, $ERROR.

simulate_mrgsolve

Run a simulation using mrgsolve (R). No NONMEM needed. Provide model code or model file path.

generate_vpc_data

Generate VPC data using mrgsolve + vpc R package. No NONMEM needed. Requires observed data and model.

check_r_setup

Check R installation and required packages (mrgsolve, vpc, dplyr, ggplot2).

Prompts

Interactive templates invoked by user choice

NameDescription
review_modelReview a NONMEM model for errors, best practices, and improvement suggestions
interpret_resultsInterpret NONMEM run results in pharmacological context
troubleshoot_runDiagnose why a NONMEM run failed or produced warnings
suggest_next_modelSuggest what to try next in model development based on current results
write_methods_sectionDraft a Methods section for a publication based on the final model

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sueinchoi/nonmem-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server