Skip to main content
Glama
CDISC Library MCP Server

CDISC Library MCP Server

by whereayan

get_codelist

Read-only

Retrieve detailed metadata for a specified CDISC codelist, including its definition and extensibility flags, by providing a terminology package and codelist ID.

Instructions

获取指定编码列表的详细信息(定义、是否可扩展等)。 要拿列表里的全部术语用 get_codelist_terms;要连提交值一起拿用get_codelist_submission_values。

示例: package='sdtmct-2024-03-29', codelist='C66731'

Input Schema

NameRequiredDescriptionDefault
rawNotrue 时返回未经瘦身的原始 API 载荷(含 _links 等超媒体元数据);默认 false,返回已瘦身、更省 token 的响应
packageYesCT 包名称,如 'sdtmct-2024-03-29'(SDTM 术语)或 'adamct-2024-03-29'(ADaM 术语);大小写不敏感。不确定有哪些包时用 get_ct_packages 查询
codelistYes编码列表 ID,格式为 'C' + 数字,如 C66731(SEX), C65047(LBTESTCD)。ID 不能靠直觉拼:C667 不存在(SEX 实为 C66731),C141657 是 10-Meter Walk/Run Functional Test Test Code、与 LBTESTCD 无关。不确定某变量的 codelist ID 时,用 get_variable 看其 refs 里的 CT 引用,或 get_codelists 按名称查

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior4/5

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

Although the annotations provide the readOnlyHint, the description adds specific behavioral context by mentioning what details will be returned (definition, extensibility). This provides the AI with a better idea of the output content than the schema alone.

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?

The definition is highly efficient. It front-loads the most important routing advice and uses a concrete example immediately afterward, making it highly digestible and actionable.

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?

Given the complexity of the CT framework (package names, codelist formats, multiple related tools), this definition is exceptionally complete. It covers how to find the inputs (package/codelist) and what the resulting data structure entails (raw vs. slim response).

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

Parameters5/5

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

Since schema coverage is 100%, the description must add context. It excels here by adding vital constraints on required parameters—specifically defining the format of the codelist ID, suggesting fallback tools (get_variable, get_codelists) if the ID is unknown, and explaining the practical difference between 'raw' and 'slim' responses.

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 explicitly states the function is to retrieve detailed information about a specific codelist. Crucially, it distinguishes this tool from its siblings by providing clear routing instructions: use get_codelist_terms for all terms and get_codelist_submission_values for submission values.

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?

The definition provides comprehensive usage guidance by not only suggesting alternative tools based on the user's specific need (e.g., terms vs. submissions) but also by warning against using the tool incorrectly (i.e., guessing the codelist ID).

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