Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CORE_DIRYesPath to your local clone of the CDISC CORE Rules Engine, e.g. /path/to/cdisc-rules-engine.

Instructions

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

MCP server exposing the CDISC CORE Rules Engine for dataset validation, rule browsing, and engine management.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
get_engine_versionB

Get CORE Rules Engine version, git commit info, and cache statistics.

Returns: Dictionary with engine version, commit hash, commit date, total rules count, CT packages count, and supported standards count.

Usage: get_engine_version()

list_rule_setsA

List all standards and versions for which CORE has validation rules.

Returns: Dictionary with rule sets, each containing standard name, version, optional substandard, and rule count.

Usage: list_rule_sets()

Example output: sdtmig/3-4: 430 rules sdtmig/3-3: 423 rules sendig/3-1-1: 259 rules adamig/1-3: 0 rules (no ADaM rules yet)

list_ct_packagesA

List available Controlled Terminology packages in the CORE cache.

Args: standard: Filter by standard type. One of: 'sdtm' → sdtmct packages 'adam' → adamct packages 'send' → sendct packages 'cdash' → cdashct packages None → all packages

Returns: List of CT package names sorted newest first.

Usage: list_ct_packages() list_ct_packages("sdtm") list_ct_packages("adam")

list_rulesA

List CORE validation rules with optional filters.

Args: standard: Filter by standard (e.g., 'sdtmig', 'sendig', 'adamig') version: Filter by version (e.g., '3-4'). Requires standard. authority: Filter by authority organization ('CDISC' or 'FDA') sensitivity: Filter by sensitivity level ('Record', 'Dataset', 'Group') status: Filter by status ('Published', 'Draft')

Returns: List of matching rules with core_id, description, sensitivity, authorities, and rule_type.

Usage: list_rules() # all 981 rules list_rules(standard="sdtmig", version="3-4") # 430 SDTM 3.4 rules list_rules(authority="FDA") # FDA rules only list_rules(sensitivity="Record") # record-level rules list_rules(standard="sdtmig", authority="FDA") # SDTM + FDA

get_rule_detailsA

Get full details for a specific CORE validation rule.

Args: core_id: The CORE rule ID (e.g., 'CORE-000001', 'CORE-000351')

Returns: Complete rule detail including description, sensitivity, conditions, actions, authority references, applicable standards/versions, domains, classes, and CDISC document citations.

Usage: get_rule_details("CORE-000001") get_rule_details("CORE-000351")

search_rulesA

Search CORE rules by keyword in description, message, or core_id.

Args: query: Search string (case-insensitive). Matches against rule description, action messages, and core_id. max_results: Maximum results to return (default 50).

Returns: Matching rules sorted by relevance.

Usage: search_rules("USUBJID") search_rules("date format") search_rules("missing value") search_rules("CORE-000351")

validate_datasetA

Validate clinical datasets against CDISC CORE rules.

Runs the CORE Rules Engine CLI against provided dataset files and returns a structured validation report.

Args: dataset_paths: List of paths to XPT, JSON, NDJSON, or XLSX files. standard: CDISC standard to validate against. Options: 'sdtmig', 'sendig', 'adamig', 'tig' version: IG version (e.g., '3-4', '3-3', '3-2', '1-3', '3-1-1') ct_version: Controlled Terminology package (e.g., 'sdtmct-2025-09-26'). Optional. rules: Specific CORE rule IDs to run (e.g., ['CORE-000001']). If None, runs all applicable rules. exclude_rules: CORE rule IDs to skip. define_xml_path: Path to Define-XML file (optional). output_format: Report format — 'JSON' (default) or 'XLSX'.

Returns: Validation report with: - summary: total rules, pass/fail/skip counts, issue summary - issues: detailed issue list with dataset, row, variables, values - rules_report: status of each rule executed - datasets: metadata of validated datasets

Usage: validate_dataset(["/data/ae.xpt", "/data/dm.xpt"]) validate_dataset( ["/data/ae.xpt"], standard="sdtmig", version="3-4", ct_version="sdtmct-2025-09-26" ) validate_dataset( ["/data/ae.xpt"], rules=["CORE-000001", "CORE-000351"] )

check_for_updatesA

Check if CORE Rules Engine has updates available on GitHub.

Runs 'git fetch' and compares local HEAD with origin/main without modifying local files.

Returns: Whether updates are available, number of new commits, and commit messages.

Usage: check_for_updates()

update_engineB

Pull latest CORE Rules Engine from GitHub and report changes.

Runs 'git pull origin main' and returns the new version info. Note: After updating, you may need to rebuild the rules cache using the CORE CLI: python core.py update-cache --apikey YOUR_KEY

Returns: Update status, git output, and new version info.

Usage: update_engine()

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: rule-set listing, CT package listing, rule listing with filters, keyword search, rule detail retrieval, dataset validation, update checking, engine updating, and version inspection. The only closely related tools (list_rules and search_rules) are differentiated by filtering versus keyword relevance.

Naming Consistency5/5

All tool names use snake_case and follow a predictable verb_noun or verb_preposition_noun pattern (list_*, get_*, search_rules, validate_dataset, check_for_updates, update_engine). The naming is consistent and readable throughout.

Tool Count5/5

Nine tools is well-scoped for a rules-engine MCP server, covering discovery, inspection, validation, and maintenance without evident redundancy. Each tool earns its place in the workflow.

Completeness4/5

The surface covers the core lifecycle: enumerate standards, rules, and CT packages; inspect and search rules; validate datasets; and maintain the engine. Minor gaps exist, such as no dedicated CT package detail lookup or rule-authoring/editing capability, but core workflows are complete.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues