Skip to main content
Glama

Explain a CORE rule

sdtm_explain_rule
Read-onlyIdempotent

Explains a CORE SDTM conformance rule: its check logic, message, CDISC/FDA and IG references, and applicable domains/classes, using cached or stored run data.

Instructions

What a CORE rule checks: description, message, CDISC/FDA rule references with IG sections, applicable domains/classes and the condensed check logic. Uses the CORE rules cache; falls back to stored 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": {
      "core_id": "<core_id>"
    },
    "name": "sdtm_explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
core_idYese.g. CORE-000001

Output Schema

NameRequiredDescriptionDefault
sourceYes
classesNo
core_idYes
domainsNo
messageNo
summaryYesOne or two sentence plain-language answer.
findingsNo
citationsYes
rule_typeNo
disclaimerNoDecision support only. Verify against the current guideline and your site SOPs.
provenanceYes
referencesNo
assumptionsNo
check_logicNoRule conditions as JSON (truncated).
descriptionNo
sensitivityNo
executabilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real value beyond that by disclosing the data source and its fallback path — the CORE rules cache with a fall-back to stored runs — which tells an agent something about result provenance and possible staleness. It stops short of describing failure behavior for an unknown core_id, which the output schema presumably covers.

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?

One dense sentence with no filler, and the enumeration of returned content is front-loaded. The colon-separated list is information-rich but slightly harder to scan than short separate clauses, which keeps it just below top marks.

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 an output schema present, the description need not document return values, yet it usefully summarizes them; annotations cover safety and a single parameter is fully specified in schema. The only meaningful gap is the absence of guidance on obtaining a valid core_id or what an agent should do if the rule is not found.

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?

There is a single required parameter with 100% schema description coverage, including a format example and a regex pattern, so the schema fully carries the semantics. The description adds nothing about core_id — no note on where to obtain one or what happens on a format mismatch — so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates exactly what an explanation contains — rule description, message, CDISC/FDA references with IG sections, applicable domains/classes, and condensed check logic — which makes the resource concrete and clearly distinct from siblings like sdtm_validate or sdtm_get_run. It is phrased as a noun fragment rather than a verb phrase, but the operation (retrieve an explanation for a given rule) is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent infers this is the lookup tool when it needs the semantics of a specific CORE rule. There is no explicit when-to-use statement, no contrast with sdtm_core_status or sdtm_get_run, and no stated prerequisite (e.g. that a core_id must first be obtained elsewhere).

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