Skip to main content
Glama

Validate datasets with CDISC CORE

sdtm_validate
Read-only

Validate SDTM, SEND, and ADaM datasets against CDISC CORE conformance rules and return grouped issues with counts, rule IDs, and examples for review.

Instructions

Run CDISC CORE conformance rules on SDTM/SEND/ADaM datasets and return issues grouped by rule, with counts, CDISC/FDA rule IDs and a few example records. The full report is stored; page through it with sdtm_get_run and compare runs with sdtm_diff_runs.

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": {
      "datasets_path": "<datasets_path>"
    },
    "name": "sdtm_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoGroups per page.
domainsNoOnly report issues for these domains, e.g. ['AE', 'DM'].
versionNoStandard version, e.g. '3-4' (SDTMIG 3.4) or '3.1.1'.3-4
group_byNo'rule' (default) gives one line per rule with a count and examples.rule
rule_idsNoRun only these CORE rules (fast re-check after a fix).
standardNoCDISC standard.sdtmig
timeout_sNo
ct_packagesNoControlled terminology packages, e.g. ['sdtmct-2024-09-27'].
datasets_pathYesFolder of datasets (.xpt, Dataset-JSON .json/.ndjson, .xlsx) or one file.
define_xml_pathNoDefine-XML, enables define-based rules.
examples_per_groupNo

Output Schema

NameRequiredDescriptionDefault
groupsYes
run_idYes
totalsYes
summaryYesOne or two sentence plain-language answer.
versionYes
datasetsYes
findingsNo
group_byYes
standardYes
citationsYes
disclaimerNoDecision support only. Verify against the current guideline and your site SOPs.
provenanceYes
assumptionsNo
next_cursorNoPass as cursor to get the next page of groups.
core_versionYes
execution_errorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, openWorld false), so the description only needs to add context. It does: the result is a grouped summary rather than a raw dump, and a full report is persisted and paginated. It omits practical behavior an agent would want — that each run is non-idempotent (a new stored report per run) and that runs may be long (timeout default 1800s) — which keeps it below 5.

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?

Two sentences, zero waste, and the high-value content (what is run, what comes back) is front-loaded before the follow-up tool routing. Every clause earns its place.

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?

With 11 parameters, annotations, and an output schema, the description covers purpose, output shape, and the follow-up workflow, which is enough to invoke it correctly. The remaining gap is operational: no hint about runtime or that omitting define_xml_path disables define-based rules. That is a minor but real omission.

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 coverage is 82%, so the schema already carries most parameter meaning, and the baseline is 3. The description reinforces the grouping/examples concepts but adds no syntax or constraints beyond what the schema documents for domains, rule_ids, group_by, or version. Adequate, not additive.

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?

States a specific verb and resource ('Run CDISC CORE conformance rules on SDTM/SEND/ADaM datasets') and specifies the return shape (issues grouped by rule with counts, rule IDs, example records). An agent can distinguish this from the reporting siblings sdtm_get_run and sdtm_diff_runs without opening any schema.

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?

Explicitly routes follow-on work: the full report is stored, page through it with sdtm_get_run and compare runs with sdtm_diff_runs. This tells the agent where to go after validation. It gives no explicit when-not-to-use guidance (e.g., full validation vs. a rule_ids re-check, which is only hinted at in the schema), so it falls short of a 5.

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