创建质量规则 *This Tool has a 'MCP Resource',please request CreateDataQualityRule(MCP Resource) to get more examples for using this tool.
AI agents use CreateDataQualityRule to create or update resources in Alibabacloud Dataworks — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Alibabacloud Dataworks environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
Name | string | Yes | 规则名称 |
Target | object | Yes | 规则所监控的对象 |
Enabled | boolean | — | 质量规则是否启用 |
Severity | string | — | 规则对于业务的等级(对应页面上的强弱规则),可选的枚举值:- Normal- High |
ProjectId | number | Yes | DataWorks工作空间ID |
Description | string | — | 规则描述信息,最长500个字符 |
TemplateCode | string | Yes | 规则所引用的规则模板唯一标识 |
ErrorHandlers | array | — | 质量规则校验问题处理器列表 |
CheckingConfig | object | — | 样本校验设置 |
SamplingConfig | object | — | 样本采集所需的设置 |
Parameters from the server's own tool schema.
An AI agent can call CreateDataQualityRule faster than any human can review — one bad instruction and it creates or modifies resources in Alibabacloud Dataworks by the hundred, each call as confident as the last.
Risk signalsAccepts freeform code/query input (CheckingConfig.Thresholds.Expected.Expression) · High parameter count (35 properties)
Attacks that exploit this kind of access
创建质量规则 *This Tool has a 'MCP Resource',please request CreateDataQualityRule(MCP Resource) to get more examples for using this tool. It is categorised as a Write tool in the Alibabacloud Dataworks MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
CreateDataQualityRule accepts 10 parameters: Name, Target, Enabled, Severity, ProjectId, Description, TemplateCode, ErrorHandlers, CheckingConfig, SamplingConfig. Required: Name, Target, ProjectId, TemplateCode. The full parameter table on this page comes from the server's own tool schema.
Register the Alibabacloud Dataworks MCP server in PolicyLayer and add a rule for CreateDataQualityRule: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Alibabacloud Dataworks. Nothing to install.
CreateDataQualityRule is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the CreateDataQualityRule rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for CreateDataQualityRule. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
CreateDataQualityRule is provided by the Alibabacloud Dataworks MCP server (alibabacloud-dataworks-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.