更新质量规则
AI agents use UpdateDataQualityRule 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 |
|---|---|---|---|
Id | string | number | Yes | 规则ID |
Name | string | — | 规则名称,数字、英文字母、汉字、半角全角标点符号组合,最长255个字符 |
Enabled | boolean | — | 规则是否启用 |
Severity | string | — | 规则对于业务的等级(对应页面上的强弱规则),可选的枚举值:- Normal- High |
ProjectId | number | Yes | DataWorks工作空间的ID |
Description | string | — | 规则描述信息,最长500个字符 |
TemplateCode | string | — | 规则所引用的规则模板唯一标识 |
ErrorHandlers | array | — | 质量规则校验问题处理器列表 |
CheckingConfig | object | — | 样本校验设置 |
SamplingConfig | object | — | 样本采集所需的设置 |
Parameters from the server's own tool schema.
An AI agent can call UpdateDataQualityRule 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 (31 properties)
Attacks that exploit this kind of access
更新质量规则. 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.
UpdateDataQualityRule accepts 10 parameters: Id, Name, Enabled, Severity, ProjectId, Description, TemplateCode, ErrorHandlers, CheckingConfig, SamplingConfig. Required: Id, ProjectId. 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 UpdateDataQualityRule: 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.
UpdateDataQualityRule 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 UpdateDataQualityRule 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 UpdateDataQualityRule. 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.
UpdateDataQualityRule 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.