Skip to main content
Glama
CDISC Library MCP Server

CDISC Library MCP Server

by whereayan

get_datastructure_varsets

Read-only

Retrieve version-specific variable sets for an analysis data structure, such as ADSL, to identify available Identifier, Treatment, or Trial Experience names before querying details.

Instructions

获取分析数据结构包含的变量集(Identifier / Treatment / Trial Experience 等)清单。 变量集名跨版本不稳定,下钻前先来这里取当版的可用名称。

示例: standard='adamig', version='latest', datastructure='ADSL'

Input Schema

NameRequiredDescriptionDefault
rawNotrue 时返回未经瘦身的原始 API 载荷(含 _links 等超媒体元数据);默认 false,返回已瘦身、更省 token 的响应
versionYes版本号,支持 '1-3' 或 '1.3' 格式;传 'latest' 自动解析为该产品当前最新版本
standardYes标准名称: sdtm, sdtmig, sendig, adam, adamig, cdash, cdashig
datastructureYes分析数据结构名,如 ADSL(受试者级分析数据集), BDS, OCCDS, TTE。大小写不敏感;不确定时先调 get_datastructures 看可用清单

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already covers the safety profile. The description adds the behavioral note that names are unstable across versions, but does not describe the result shape beyond the examples, nor whether the list is paginated or how raw=true affects the payload (that is left to the schema).

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?

Front-loaded purpose, then a workflow caveat, then a compact example invocation. Three short lines with no filler, though the example line could arguably be redundant given 100% schema coverage.

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?

For a read-only lookup with full schema coverage and no output schema, it covers what is needed: verb, target resource, key fields of the response, and a worked example. It falls short of 5 because it does not clarify the distinct roles of get_datastructure_varset (singular) vs this list tool.

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. The description adds real value by prescribing an example combination and warning that names vary by version, reinforcing the need for the correct 'version' and 'datastructure'. The nested 'datastructure' schema already points to get_datastructures, so the description adds only modest extra context.

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 names a specific verb (获取) and resource (变量集清单 for an analysis datastructure), with examples of varset kinds (Identifier / Treatment / Trial Experience). It is distinguishable from siblings like get_datastructure_variables and get_datastructure, though it does not explicitly contrast them in words.

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?

It states a usage rule: var-noiset names are unstable across versions, so come here first to get the version-specific available names before drilling down. That is implied guidance for a workflow, but there is no explicit when-not guidance and no mention of the sibling naming ambiguity (varset vs variables).

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