Skip to main content
Glama

CRF / SDTM validation / CRF 数据校验(SDTM)

crf_sdtm_validate
Read-only

CRF / SDTM validation / CRF 数据校验(SDTM) | USE WHEN: check whether CRF data meets CDISC SDTM conventions before export | ALIASES: CRF校验, SDTM, CDISC, 数据合规, 导出前检查, CRF validate, data standards | RETURNS: 校验结果

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": {
      "fields": "<fields>"
    },
    "name": "crf_sdtm_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesCRF 字段定义列表,每项含 name/type 等(如 [{"name":"AGE","type":"integer"}])。校验需要真实字段,空列表会被拒绝
schemaNo自定义 SDTM 变量定义 {域: {变量: 类型}};不传则用内置 SDTMIG 变量表校验。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / schema
      Added value: +{
      +  "description": "自定义 SDTM 变量定义 {域: {变量: 类型}};不传则用内置 SDTMIG 变量表校验。",
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "CRF 字段定义列表,每项含 name/type 等(如 [{\"name\":\"AGE\",\"type\":\"integer\"}])。校验需要真实字段,空列表会被拒绝",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / form_id
      Removed value: -{
      -  "description": "表单 id",
      -  "type": "integer"
      -}
    • changedInput schema / required
      Previous value: -[]New value: +[
      +  "fields"
      +]
  3. Added

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds nothing beyond a near-empty 'RETURNS: 校验结果,' which does not say what a validation result looks like, whether failures are fatal, or which SDTM version/ruleset the built-in check enforces. The aliases are retrieval aids, not behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The pipe-segmented format is scannable and the WHEN clause is front-loaded, which is good. However, the first segment redundantly restates the name and title, the alias list consumes substantial space for retrieval-only value, and 'RETURNS: 校验结果' is filler rather than information.

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

Completeness2/5

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

There is no output schema, so the description must explain what comes back, and 'RETURNS: 校验结果' does not — an agent cannot tell if it receives a boolean, a violation list, or severity codes. For a tool whose entire value is the shape of its findings, that is a material omission, even though parameters are fully covered by the schema.

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?

Schema description coverage is 100%, with both `fields` and `schema` documented in the schema itself, including the empty-list rejection and the built-in SDTMIG fallback. The description never mentions either parameter, so baseline 3 applies — the schema, not the prose, carries all parameter meaning.

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 concrete operation and target domain: 'check whether CRF data meets CDISC SDTM conventions before export.' Combined with the bilingual title, an agent can tell this is a standards-compliance check rather than a coding suggestion (act_crf_suggest_coding) or a statistic. It stops short of explicitly differentiating itself from siblings, but the verb+resource is specific enough to act on.

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

Usage Guidelines4/5

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

The 'USE WHEN' clause gives a clear trigger condition ('before export') that tells the agent when this tool is the right pick. There are no exclusions or named alternatives for edge cases (e.g., validating post-export data or non-CRF sources), which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources