CreateDataQualityRule
Define data quality rules for tables in DataWorks to monitor metrics, set thresholds, and detect anomalies automatically.
Instructions
创建质量规则 *This Tool has a 'MCP Resource',please request CreateDataQualityRule(MCP Resource) to get more examples for using this tool.
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": {
"Name": "<Name>",
"Target": "<Target>",
"TemplateCode": "<TemplateCode>"
},
"name": "CreateDataQualityRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Name | Yes | 规则名称 | |
| ProjectId | No | DataWorks工作空间ID | |
| Target | Yes | 规则所监控的对象 | |
| TemplateCode | Yes | 规则所引用的规则模板唯一标识 | |
| Description | No | 规则描述信息,最长500个字符 | |
| CheckingConfig | No | 样本校验设置 | |
| Enabled | No | 质量规则是否启用 | |
| Severity | No | 规则对于业务的等级(对应页面上的强弱规则),可选的枚举值:- Normal- High | |
| SamplingConfig | No | 样本采集所需的设置 | |
| ErrorHandlers | No | 质量规则校验问题处理器列表 |