get_variable
Retrieves detailed metadata for a specified SDTM/SEND/CDASH variable, including data type, core attributes, role, and CT codelist references.
Instructions
获取指定变量的详细信息:数据类型、核心属性(Req/Exp/Perm)、角色、关联的 CT codelist 引用(在 refs 中)等。 仅适用于 SDTM/SEND/CDASH 系列;ADaM 变量用 get_datastructure_variable。
示例: standard='sdtmig', version='3-4', dataset='DM', variable='USUBJID'
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": {
"standard": "<standard>",
"version": "<version>",
"dataset": "<dataset>",
"variable": "<variable>"
},
"name": "get_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | true 时返回未经瘦身的原始 API 载荷(含 _links 等超媒体元数据);默认 false,返回已瘦身、更省 token 的响应 | |
| dataset | Yes | 数据集名称(大写),如 DM | |
| version | Yes | 版本号,支持 '3-4' 或 '3.4' 格式;传 'latest' 自动解析为该产品当前最新版本 | |
| standard | Yes | 标准名称: sdtm, sdtmig, sendig, adam, adamig, cdash, cdashig | |
| variable | Yes | 变量名称(大写),如 USUBJID, AGE, SEX |