Skip to main content
Glama
CDISC Library MCP Server

CDISC Library MCP Server

by whereayan

get_dataset_variables

Read-only

Retrieves the full variable list for a specified SDTM, SEND, or CDASH dataset, including names, labels, core attributes, and roles.

Instructions

获取指定数据集的完整变量列表(名称、标签、核心属性 Req/Exp/Perm、角色等)。 这是拿一个域全部变量定义的首选工具;数据集本身的元数据用 get_dataset。 仅适用于 SDTM/SEND/CDASH 系列;查 ADaM(如 ADSL)的变量请改用 get_datastructure(含 core 与类型的整表)或 get_datastructure_variables(名称清单)。

示例: standard='sdtmig', version='3-4', dataset='DM'

Input Schema

NameRequiredDescriptionDefault
rawNotrue 时返回未经瘦身的原始 API 载荷(含 _links 等超媒体元数据);默认 false,返回已瘦身、更省 token 的响应
datasetYes数据集名称(大写),如 DM, AE
versionYes版本号,支持 '3-4' 或 '3.4' 格式;传 'latest' 自动解析为该产品当前最新版本
standardYes标准名称: sdtm, sdtmig, sendig, adam, adamig, cdash, cdashig

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

readOnlyHint=true is consistent with a pure lookup, and the description reinforces this by describing a read-only variable listing with its returned field set. It also discloses the important scope constraint (SDTM/SEND/CDASH only, not ADaM). It does not discuss the slimmed-vs-raw payload tradeoff or response size, but the schema's `raw` parameter already documents that difference.

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?

Front-loaded with the core action, followed by sibling routing, scope limit, and a concrete example — each sentence carries distinct information and nothing is repeated from the name or schema. The parenthetical field list is dense but earns its place by previewing the return shape.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by naming the fields returned (name, label, core attributes, role). For a 4-parameter read-only lookup it covers purpose, scope, alternatives, and return content — nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the worked example (standard='sdtmig', version='3-4', dataset='DM') adds real value by demonstrating which standard/version/dataset combination is valid and clarifying the dashed version format in context. It does not add anything about the `raw` flag beyond the schema, keeping this short of a 5.

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?

The description states a specific verb+resource: retrieve the complete variable list for a given dataset, and enumerates what each entry contains (name, label, core attributes Req/Exp/Perm, role). It explicitly distinguishes itself from get_dataset (dataset-level metadata) and from get_datastructure/get_datastructure_variables (ADaM variables). An agent can differentiate it from all 20 siblings from the text alone.

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

Usage Guidelines5/5

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

Explicitly declares itself the preferred tool for pulling all variable definitions of a domain, names the alternative for dataset metadata (get_dataset), and gives a hard exclusion with the redirect for ADaM (e.g. ADSL → get_datastructure or get_datastructure_variables). When-to-use, when-not-to-use, and alternatives are all present.

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